Merge pull request #13870 from howz97/main

fix comment in raft.go
This commit is contained in:
Piotr Tabor 2022-04-02 16:50:26 +02:00 committed by GitHub
commit 3bb2d0c716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1154,7 +1154,7 @@ func stepLeader(r *raft, m pb.Message) error {
// the rejection's log term. If a probe at one of these indexes
// succeeded, its log term at that index would match the leader's,
// i.e. 3 or 5 in this example. But the follower already told the
// leader that it is still at term 2 at index 9, and since the
// leader that it is still at term 2 at index 6, and since the
// log term only ever goes up (within a log), this is a contradiction.
//
// At index 1, however, the leader can draw no such conclusion,