e3: nil writer fix (#687)

This commit is contained in:
Alex Sharov 2022-10-18 11:38:14 +07:00 committed by GitHub
parent 5f9bd992a1
commit 37cdd12e5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,6 +422,9 @@ func (h *History) Flush() error {
if err := h.InvertedIndex.Flush(); err != nil {
return err
}
if h.w == nil {
return nil
}
if err := h.w.flush(h.tx); err != nil {
return err
}