浏览代码

bump(github.com/coreos/go-raft): 9fed6b9e77a96f1ab3a4c02bc8dbed72fbac9eb0

Ben Johnson 12 年之前
父节点
当前提交
375f7a73b9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      third_party/github.com/coreos/go-raft/server.go

+ 1 - 1
third_party/github.com/coreos/go-raft/server.go

@@ -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]