mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Fix DeleteObject when only free versions remain (#16289)
This commit is contained in:
committed by
GitHub
parent
34167c51d5
commit
2fa35def2c
@@ -2335,7 +2335,7 @@ func (s *xlStorage) RenameData(ctx context.Context, srcVolume, srcPath string, f
|
||||
}
|
||||
|
||||
// Replace the data of null version or any other existing version-id
|
||||
ofi, err := xlMeta.ToFileInfo(dstVolume, dstPath, reqVID)
|
||||
ofi, err := xlMeta.ToFileInfo(dstVolume, dstPath, reqVID, false)
|
||||
if err == nil && !ofi.Deleted {
|
||||
if xlMeta.SharedDataDirCountStr(reqVID, ofi.DataDir) == 0 {
|
||||
// Purge the destination path as we are not preserving anything
|
||||
|
||||
Reference in New Issue
Block a user