mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Indicate RenameData is called by healObject (#16997)
This commit is contained in:
committed by
GitHub
parent
1f1c267b6c
commit
25f7a8e406
@@ -2357,7 +2357,11 @@ func (s *xlStorage) RenameData(ctx context.Context, srcVolume, srcPath string, f
|
||||
// suspended or disabled on this bucket. RenameData will replace
|
||||
// the 'null' version. We add a free-version to track its tiered
|
||||
// content for asynchronous deletion.
|
||||
if fi.VersionID == "" && !fi.IsRestoreObjReq() {
|
||||
//
|
||||
// Note: RestoreObject and HealObject requests don't end up replacing the
|
||||
// null version and therefore don't require the free-version to track
|
||||
// anything
|
||||
if fi.VersionID == "" && !fi.IsRestoreObjReq() && !fi.Healing() {
|
||||
// Note: Restore object request reuses PutObject/Multipart
|
||||
// upload to copy back its data from the remote tier. This
|
||||
// doesn't replace the existing version, so we don't need to add
|
||||
|
||||
Reference in New Issue
Block a user