remove all bucket metadata

fix https://github.com/chrislusf/seaweedfs/issues/2118
This commit is contained in:
Chris Lu committed 2021-06-10 23:37:54 -07:00
1 parent b71c3cfba4
commit 9357911a95
4 files changed
+13 -1

No files matched your search

@@ -32,6 +32,9 @@ type AbstractSqlStore struct {
dbsLock sync.Mutex
}
func (store *AbstractSqlStore) CanDropWholeBucket() bool {
return store.SupportBucketTable
}
func (store *AbstractSqlStore) OnBucketCreation(bucket string) {
store.dbsLock.Lock()
defer store.dbsLock.Unlock()