From 28a4a1f8d68e2cc826d8ed4c9bd2d4f25e7c0b10 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 13 Jun 2021 07:31:56 -0700 Subject: [PATCH] fix for mysql2 postgres2 on fast dropping buckets --- weed/filer/filerstore.go | 2 +- weed/filer/filerstore_wrapper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/filer/filerstore.go b/weed/filer/filerstore.go index 1ded11b4a..38927d6fb 100644 --- a/weed/filer/filerstore.go +++ b/weed/filer/filerstore.go @@ -43,5 +43,5 @@ type FilerStore interface { type BucketAware interface { OnBucketCreation(bucket string) OnBucketDeletion(bucket string) - IsDropBucketAltogether() bool + CanDropWholeBucket() bool } diff --git a/weed/filer/filerstore_wrapper.go b/weed/filer/filerstore_wrapper.go index e4761f565..2470f340c 100644 --- a/weed/filer/filerstore_wrapper.go +++ b/weed/filer/filerstore_wrapper.go @@ -45,7 +45,7 @@ func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper { func (fsw *FilerStoreWrapper) CanDropWholeBucket() bool { if ba, ok := fsw.defaultStore.(BucketAware); ok { - return ba.IsDropBucketAltogether() + return ba.CanDropWholeBucket() } return false }