mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-21 14:46:15 +00:00
consensus: avoid flushing WAL
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user