-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
mit-6.824-labs/src/raft/raft.go
Lines 343 to 347 in c996f20
| 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels