Browse Source

report deletion error in the log

pull/1255/head
Chris Lu 5 years ago
parent
commit
3505b06023
  1. 5
      weed/filer2/filer_deletion.go

5
weed/filer2/filer_deletion.go

@ -34,12 +34,15 @@ func (f *Filer) loopProcessingDeletion() {
deletionCount = 0
f.fileIdDeletionQueue.Consume(func(fileIds []string) {
deletionCount = len(fileIds)
_, err := operation.DeleteFilesWithLookupVolumeId(f.GrpcDialOption, fileIds, lookupFunc)
deleteResults, err := operation.DeleteFilesWithLookupVolumeId(f.GrpcDialOption, fileIds, lookupFunc)
if err != nil {
glog.V(0).Infof("deleting fileIds len=%d error: %v", deletionCount, err)
} else {
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))
}
})
if deletionCount == 0 {

Loading…
Cancel
Save