Skip to content

Rules for servers #1

@jiange91

Description

@jiange91

if reply.Term > rf.currentTerm {
rf.stepDownToFollower(args.Term)
rf.persist()
return
}

Hi, Thanks for the excellent work. I have trouble understanding this block of codes. According to the paper, If RPC request or response contains term T > currentTerm, we set currentTerm = T and convert to follower. Then why using args.Term when converting to follower instead of reply.Term

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions