fix some tests in the test suite

pull/482/head
John Shahid 2014-04-29 17:57:23 -04:00
parent 078d23bc30
commit 6e70b7efc7
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ func (s *RaftServer) CompactLog() {
func (s *RaftServer) CommittedAllChanges() bool {
entries := s.raftServer.LogEntries()
if len(entries) == 0 {
if s.raftServer.CommitIndex() == 0 {
return false
}
lastIndex := entries[len(entries)-1].Index()