mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: not set applied when restore log from snapshot
applied is only updated by application level through Advance.
This commit is contained in:
parent
0d200baf72
commit
2c06a1d815
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user