Compare commits

...

2 Commits

Author SHA1 Message Date
Aleksandr Bezobchuk
a1ffb534e2 Merge branch 'master' into bez/wal-update 2021-07-12 15:48:41 -04:00
Aleksandr Bezobchuk
c83be540a9 consensus: avoid flushing WAL 2021-07-12 15:01:11 -04:00

View File

@@ -801,12 +801,8 @@ func (cs *State) receiveRoutine(maxSteps int) {
cs.handleMsg(mi)
case mi = <-cs.internalMsgQueue:
err := cs.wal.WriteSync(mi) // NOTE: fsync
if err != nil {
panic(fmt.Sprintf(
"failed to write %v msg to consensus WAL due to %v; check your file system and restart the node",
mi, err,
))
if err := cs.wal.Write(mi); err != nil {
cs.Logger.Error("failed writing to WAL", "err", err)
}
if _, ok := mi.Msg.(*VoteMessage); ok {