use renameAll instead of deleteAll for metacache-manager (#13005)

renameAll is cheaper, rely on background deletes instead.
This commit is contained in:
Harshavardhana
2021-08-19 09:16:14 -07:00
committed by GitHub
parent 202d0b64eb
commit e9d970154d
3 changed files with 3 additions and 15 deletions

View File

@@ -122,7 +122,7 @@ func (er erasureObjects) renameAll(ctx context.Context, bucket, prefix string) {
wg.Add(1)
go func(disk StorageAPI) {
defer wg.Done()
disk.RenameFile(ctx, bucket, prefix, minioMetaTmpBucket, mustGetUUID())
disk.RenameFile(ctx, bucket, prefix, minioMetaTmpDeletedBucket, mustGetUUID())
}(disk)
}
wg.Wait()