Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
  • Loading branch information
krasi-georgiev committed Jun 24, 2019
1 parent af26017 commit 9e0d32c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion block.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,12 @@ func (pb *Block) GetSymbolTableSize() uint64 {
func (pb *Block) setCompactionFailed() error {
pb.meta.Compaction.Failed = true
n, err := writeMetaFile(pb.logger, pb.dir, &pb.meta)
if err != nil {
pb.numBytesMeta = 0
return err
}
pb.numBytesMeta = n
return err
return nil
}

type blockIndexReader struct {
Expand Down

0 comments on commit 9e0d32c

Please sign in to comment.