consensus: flush wal on stop (#3297)

Should fix #3295
Also partial fix of #3043
This commit is contained in:
Ethan Buchman
2019-02-12 06:32:40 +01:00
committed by Anton Kaliaev
parent 08dabab024
commit dc6567c677
3 changed files with 4 additions and 1 deletions

View File

@ -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()
}