fixes from review

This commit is contained in:
Ethan Buchman
2016-08-17 23:08:43 -04:00
parent 1110c5d37d
commit 3998bdbfc1
4 changed files with 17 additions and 29 deletions

View File

@ -60,6 +60,14 @@ func NewWAL(file string, light bool) (*WAL, error) {
}, nil
}
func (wal *WAL) Exists() bool {
if wal == nil {
log.Warn("consensus msg log is nil")
return false
}
return wal.exists
}
// called in newStep and for each pass in receiveRoutine
func (wal *WAL) Save(clm ConsensusLogMessageInterface) {
if wal != nil {