Set free-version id in case of version/version-suspended buckets (#12982)

This free-version id may be used to track tiered object contents of the
object (version) being deleted.
This commit is contained in:
Krishnan Parthasarathi 2021-08-17 08:59:48 -07:00 committed by GitHub
parent ef4d023c85
commit b7e3651d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1065,6 +1065,7 @@ func (er erasureObjects) DeleteObjects(ctx context.Context, bucket string, objec
DeleteMarkerReplicationStatus: objects[i].DeleteMarkerReplicationStatus,
VersionPurgeStatus: objects[i].VersionPurgeStatus,
}
versions[i].SetTierFreeVersionID(mustGetUUID())
if opts.Versioned {
versions[i].VersionID = uuid
}