Browse Source

raft: not set applied when restore log from snapshot

applied is only updated by application level through Advance.
Yicheng Qin 11 years ago
parent
commit
2c06a1d815
1 changed files with 0 additions and 1 deletions
  1. 0 1
      raft/log.go

+ 0 - 1
raft/log.go

@@ -250,7 +250,6 @@ func (l *raftLog) restore(s pb.Snapshot) {
 		panic(err) // TODO(bdarnell)
 	}
 	l.committed = s.Metadata.Index
-	l.applied = s.Metadata.Index
 	l.unstable = l.committed + 1
 	l.unstableEnts = nil
 }