remove redundant log, more descriptive error message for closing condition
This commit is contained in:
parent
ff093fae00
commit
6f126c80bf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user