remove redundant log, more descriptive error message for closing condition

This commit is contained in:
vyzo 2021-07-13 18:32:29 +03:00
parent ff093fae00
commit 6f126c80bf

View File

@ -1439,8 +1439,7 @@ func (s *SplitStore) has(c cid.Cid) (bool, error) {
func (s *SplitStore) checkClosing() error {
if atomic.LoadInt32(&s.closing) == 1 {
log.Info("splitstore is closing; aborting compaction")
return xerrors.Errorf("compaction aborted")
return xerrors.Errorf("splitstore is closing")
}
return nil