|
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
mit-6.824-labs/src/raft/raft.go
Lines 343 to 347 in c996f20
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