Browse Source

fix for mysql2 postgres2 on fast dropping buckets

pull/2128/head
Chris Lu 4 years ago
parent
commit
28a4a1f8d6
  1. 2
      weed/filer/filerstore.go
  2. 2
      weed/filer/filerstore_wrapper.go

2
weed/filer/filerstore.go

@ -43,5 +43,5 @@ type FilerStore interface {
type BucketAware interface { type BucketAware interface {
OnBucketCreation(bucket string) OnBucketCreation(bucket string)
OnBucketDeletion(bucket string) OnBucketDeletion(bucket string)
IsDropBucketAltogether() bool
CanDropWholeBucket() bool
} }

2
weed/filer/filerstore_wrapper.go

@ -45,7 +45,7 @@ func NewFilerStoreWrapper(store FilerStore) *FilerStoreWrapper {
func (fsw *FilerStoreWrapper) CanDropWholeBucket() bool { func (fsw *FilerStoreWrapper) CanDropWholeBucket() bool {
if ba, ok := fsw.defaultStore.(BucketAware); ok { if ba, ok := fsw.defaultStore.(BucketAware); ok {
return ba.IsDropBucketAltogether()
return ba.CanDropWholeBucket()
} }
return false return false
} }

Loading…
Cancel
Save