mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
wal: fix append entry
This commit is contained in:
parent
54b4f52e48
commit
43c9ca895b
@ -154,7 +154,7 @@ func (w *WAL) LoadNode() (*Node, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ents = append(ents, e)
|
||||
ents = append(ents[:e.Index-1], e)
|
||||
case stateType:
|
||||
s, err := loadState(b.d)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user