Merge pull request #6390 from gyuho/simple

wal: simplify dir.Close call
This commit is contained in:
Gyu-Ho Lee 2016-09-09 09:50:38 +09:00 committed by GitHub
commit b22b405465

View File

@ -507,11 +507,7 @@ func (w *WAL) Close() error {
}
}
if err := w.dirFile.Close(); err != nil {
return err
}
return nil
return w.dirFile.Close()
}
func (w *WAL) saveEntry(e *raftpb.Entry) error {