mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
bump(github.com/coreos/go-raft): 9fed6b9e77a96f1ab3a4c02bc8dbed72fbac9eb0
This commit is contained in:
parent
259e1ce256
commit
375f7a73b9
@ -854,7 +854,7 @@ func (s *Server) processAppendEntriesResponse(resp *AppendEntriesResponse) {
|
||||
for _, peer := range s.peers {
|
||||
indices = append(indices, peer.getPrevLogIndex())
|
||||
}
|
||||
sort.Sort(uint64Slice(indices))
|
||||
sort.Sort(sort.Reverse(uint64Slice(indices)))
|
||||
|
||||
// We can commit up to the index which the majority of the members have appended.
|
||||
commitIndex := indices[s.QuorumSize()-1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user