mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: init snapi when init appliedi
This commit is contained in:
parent
bd9e93eeea
commit
1b038da18a
@ -418,6 +418,7 @@ func (s *EtcdServer) run() {
|
||||
firsti := rd.CommittedEntries[0].Index
|
||||
if appliedi == 0 {
|
||||
appliedi = firsti - 1
|
||||
snapi = appliedi
|
||||
}
|
||||
if firsti > appliedi+1 {
|
||||
log.Panicf("etcdserver: first index of committed entry[%d] should <= appliedi[%d] + 1", firsti, appliedi)
|
||||
|
Loading…
x
Reference in New Issue
Block a user