raft: not set applied when restore log from snapshot

applied is only updated by application level through Advance.
This commit is contained in:
Yicheng Qin 2014-11-24 23:37:47 -08:00
parent 0d200baf72
commit 2c06a1d815

View File

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