mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust log message
This commit is contained in:
parent
a22ee30596
commit
3e1395b767
|
@ -1,6 +1,7 @@
|
||||||
package filer2
|
package filer2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||||
|
@ -50,15 +51,14 @@ func (f *Filer) loopProcessingDeletion() {
|
||||||
fileIds = fileIds[:0]
|
fileIds = fileIds[:0]
|
||||||
}
|
}
|
||||||
deletionCount = len(toDeleteFileIds)
|
deletionCount = len(toDeleteFileIds)
|
||||||
deleteResults, err := operation.DeleteFilesWithLookupVolumeId(f.GrpcDialOption, toDeleteFileIds, lookupFunc)
|
_, err := operation.DeleteFilesWithLookupVolumeId(f.GrpcDialOption, toDeleteFileIds, lookupFunc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if !strings.Contains(err.Error(), "already deleted") {
|
||||||
glog.V(0).Infof("deleting fileIds len=%d error: %v", deletionCount, err)
|
glog.V(0).Infof("deleting fileIds len=%d error: %v", deletionCount, err)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
glog.V(1).Infof("deleting fileIds len=%d", deletionCount)
|
glog.V(1).Infof("deleting fileIds len=%d", deletionCount)
|
||||||
}
|
}
|
||||||
if len(deleteResults) != deletionCount {
|
|
||||||
glog.V(0).Infof("delete %d fileIds actual %d", deletionCount, len(deleteResults))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue