Skip to content

Commit

Permalink
Update translator's notes for the receiver's action (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuhui committed Feb 16, 2021
1 parent 738f50b commit a233f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raft-zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Raft 通过选举一个高贵的领导人,然后给予他全部的管理复制

1. 返回假 如果领导者的任期 小于 接收者的当前任期(译者注:这里的接收者是指跟随者或者候选者)(5.1 节)
2. 返回假 如果接收者日志中没有包含这样一个条目 即该条目的任期在prevLogIndex上能和prevLogTerm匹配上
(译者注:在接收者日志中 如果能找到一个和prevLogIndex以及prevLogTerm一样的索引和任期的日志条目 则返回真 否则返回假)(5.3 节)
(译者注:在接收者日志中 如果能找到一个和prevLogIndex以及prevLogTerm一样的索引和任期的日志条目 则继续执行下面的步骤 否则返回假)(5.3 节)
3. 如果一个已经存在的条目和新条目(译者注:即刚刚接收到的日志条目)发生了冲突(因为索引相同,任期不同),那么就删除这个已经存在的条目以及它之后的所有条目 (5.3 节)
4. 追加日志中尚未存在的任何新条目
5. 如果领导者的已知已经提交的最高的日志条目的索引 大于 接收者的已知已经提交的最高的日志条目的索引
Expand Down

0 comments on commit a233f09

Please sign in to comment.