e3: nil writer fix (#686)

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

View File

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