state.State and wal.writeHeight after handshake

This commit is contained in:
Ethan Buchman
2016-12-22 19:30:09 -05:00
parent 0e7694ca94
commit 0c01b0ded9
5 changed files with 16 additions and 2 deletions

View File

@ -101,6 +101,7 @@ func (cs *ConsensusState) catchupReplay(csHeight int) error {
// Search for height marker
gr, found, err = cs.wal.group.Search("#HEIGHT: ", makeHeightSearchFunc(csHeight))
if err == io.EOF {
log.Warn("Replay: wal.group.Search returned EOF", "height", csHeight)
return nil
} else if err != nil {
return err