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
small refactoring
chrislu4e7d8eb3f167
diff --git a/weed/filer/filer_delete_entry.go b/weed/filer/filer_delete_entry.goindex 64546940e7..dae0b28ef8 100644--- a/weed/filer/filer_delete_entry.go+++ b/weed/filer/filer_delete_entry.go@@ -55,7 +55,7 @@ func (f *Filer) DeleteEntryMetaAndData(ctx context.Context, p util.FullPath, isRif isDeleteCollection {collectionName := entry.Name()- f.doDeleteCollection(collectionName)+ f.DoDeleteCollection(collectionName)}return nil@@ -133,7 +133,7 @@ func (f *Filer) doDeleteEntryMetaAndData(ctx context.Context, entry *Entry, shoureturn nil}-func (f *Filer) doDeleteCollection(collectionName string) (err error) {+func (f *Filer) DoDeleteCollection(collectionName string) (err error) {return f.MasterClient.WithClient(false, func(client master_pb.SeaweedClient) error {_, err := client.CollectionDelete(context.Background(), &master_pb.CollectionDeleteRequest{diff --git a/weed/server/filer_grpc_server.go b/weed/server/filer_grpc_server.goindex b9571710d6..05480d2ad5 100644--- a/weed/server/filer_grpc_server.go+++ b/weed/server/filer_grpc_server.go@@ -363,12 +363,7 @@ func (fs *FilerServer) DeleteCollection(ctx context.Context, req *filer_pb.Deletglog.V(4).Infof("DeleteCollection %v", req)- err = fs.filer.MasterClient.WithClient(false, func(client master_pb.SeaweedClient) error {- _, err := client.CollectionDelete(context.Background(), &master_pb.CollectionDeleteRequest{- Name: req.GetCollection(),- })- return err- })+ err = fs.filer.DoDeleteCollection(req.GetCollection())return &filer_pb.DeleteCollectionResponse{}, err}