SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
protect against nil deletion results
Chris Lu8dd260623e2b
diff --git a/weed/operation/delete_content.go b/weed/operation/delete_content.goindex 3583993243..e4aa6c6d39 100644--- a/weed/operation/delete_content.go+++ b/weed/operation/delete_content.go@@ -4,12 +4,14 @@ import ("context""errors""fmt"- "github.com/chrislusf/seaweedfs/weed/glog"- "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb"- "google.golang.org/grpc""net/http""strings""sync"++ "google.golang.org/grpc"++ "github.com/chrislusf/seaweedfs/weed/glog"+ "github.com/chrislusf/seaweedfs/weed/pb/volume_server_pb")type DeleteResult struct {@@ -94,7 +96,7 @@ func DeleteFilesWithLookupVolumeId(grpcDialOption grpc.DialOption, fileIds []strif deleteResults, deleteErr := DeleteFilesAtOneVolumeServer(server, grpcDialOption, fidList); deleteErr != nil {err = deleteErr- } else {+ } else if deleteResults != nil {resultChan <- deleteResults}