mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-28 07:50:44 +01:00
fix for mysql2 postgres2 on fast dropping buckets
This commit is contained in:
1 parent
1e76fc994a
commit
28a4a1f8d6
2 files changed
+2
-2
No files matched your search
@@ -43,5 +43,5 @@ type FilerStore interface {
|
||||
type BucketAware interface {
|
||||
OnBucketCreation(bucket string)
|
||||
OnBucketDeletion(bucket string)
|
||||
IsDropBucketAltogether() bool
|
||||
CanDropWholeBucket() bool
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user