Преглед на файлове

Merge pull request #2890 from xiang90/fix_raft_comment

raft: remove wrong invariant
Xiang Li преди 10 години
родител
ревизия
815fe327dd
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      raft/log.go

+ 0 - 1
raft/log.go

@@ -31,7 +31,6 @@ type raftLog struct {
 
 
 	// committed is the highest log position that is known to be in
 	// committed is the highest log position that is known to be in
 	// stable storage on a quorum of nodes.
 	// stable storage on a quorum of nodes.
-	// Invariant: committed < unstable
 	committed uint64
 	committed uint64
 	// applied is the highest log position that the application has
 	// applied is the highest log position that the application has
 	// been instructed to apply to its state machine.
 	// been instructed to apply to its state machine.