mirror of
https://github.com/minio/minio.git
synced 2025-04-16 00:49:09 -04:00
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 {
|
if forceDelete {
|
||||||
err = RemoveAll(volumeDir)
|
err = renameAll(volumeDir, pathutil.Join(s.diskPath, minioMetaTmpDeletedBucket, mustGetUUID()))
|
||||||
} else {
|
} else {
|
||||||
err = Remove(volumeDir)
|
err = Remove(volumeDir)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user