Просмотр исходного кода

raft: not set applied when restore log from snapshot

applied is only updated by application level through Advance.
Yicheng Qin 11 лет назад
Родитель
Сommit
2c06a1d815
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      raft/log.go

+ 0 - 1
raft/log.go

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