remove all bucket metadata

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

View File

@@ -71,7 +71,7 @@ func (f *Filer) doBatchDeleteFolderMetaAndData(ctx context.Context, entry *Entry
lastFileName := ""
includeLastFile := false
if !isDeletingBucket {
if !isDeletingBucket || !f.Store.CanDropWholeBucket() {
for {
entries, _, err := f.ListDirectoryEntries(ctx, entry.FullPath, lastFileName, includeLastFile, PaginationSize, "", "", "")
if err != nil {