wal: fix append entry

This commit is contained in:
Xiang Li 2014-08-01 21:58:18 -07:00 committed by Yicheng Qin
parent 54b4f52e48
commit 43c9ca895b

View File

@ -154,7 +154,7 @@ func (w *WAL) LoadNode() (*Node, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
ents = append(ents, e) ents = append(ents[:e.Index-1], e)
case stateType: case stateType:
s, err := loadState(b.d) s, err := loadState(b.d)
if err != nil { if err != nil {