mirror of https://github.com/minio/minio.git
fix: force-delete should just rename to .trash (#12499)
avoid blocking call for force-delete, instead treat it lazily and delete in background.
This commit is contained in:
parent
264ee97219
commit
31971906ff
|
@ -756,7 +756,7 @@ func (s *xlStorage) DeleteVol(ctx context.Context, volume string, forceDelete bo
|
|||
}
|
||||
|
||||
if forceDelete {
|
||||
err = RemoveAll(volumeDir)
|
||||
err = renameAll(volumeDir, pathutil.Join(s.diskPath, minioMetaTmpDeletedBucket, mustGetUUID()))
|
||||
} else {
|
||||
err = Remove(volumeDir)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue