aboutsummaryrefslogtreecommitdiff
path: root/weed/filer
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-07-11 14:50:09 -0700
committerchrislu <chris.lu@gmail.com>2024-07-11 14:50:11 -0700
commit4e7d8eb3f167d2112cdb9c04308e68d6dc639997 (patch)
tree92131da81261fd945999a45518275572f74618f9 /weed/filer
parentb62f7c512267cfe379100fa283bbe4b0682e5dc9 (diff)
downloadseaweedfs-4e7d8eb3f167d2112cdb9c04308e68d6dc639997.tar.xz
seaweedfs-4e7d8eb3f167d2112cdb9c04308e68d6dc639997.zip
small refactoring
Diffstat (limited to 'weed/filer')
-rw-r--r--weed/filer/filer_delete_entry.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/filer_delete_entry.go b/weed/filer/filer_delete_entry.go
index 64546940e..dae0b28ef 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, isR
if 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, shou
return 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{