Skip to content

Commit

Permalink
Merge pull request #77 from irisnet/vincent/wal-flush
Browse files Browse the repository at this point in the history
R4R: Flush wal on stop
  • Loading branch information
Haifeng Xi authored Jun 26, 2019
2 parents 6dbbe2d + e66c115 commit 5a32522
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/wal.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (wal *baseWAL) OnStart() error {
// Use Wait() to ensure it's finished shutting down
// before cleaning up files.
func (wal *baseWAL) OnStop() {
wal.group.Flush()
wal.group.Stop()
wal.group.Close()
}
Expand Down

0 comments on commit 5a32522

Please sign in to comment.