forked from Mirrors/minio
Avoid extra GetObjectInfo call in DeleteObject API (#17599)
Optimize DeleteObject API to avoid extra GetObjectInfo call on the replicating side. For receiving side, it is just a regular DeleteObject call. Bonus: Fix a corner case where version purged is absent on target (either due to replication not yet complete or target version already deleted in a one-way replication or when replication was disabled). In such cases, mark version purge complete.
This commit is contained in:
@@ -185,6 +185,7 @@ type ObjectInfo struct {
|
||||
VersionPurgeStatusInternal string
|
||||
VersionPurgeStatus VersionPurgeStatusType
|
||||
|
||||
replicationDecision string // internal representation of replication decision for use by DeleteObject handler
|
||||
// The total count of all versions of this object
|
||||
NumVersions int
|
||||
// The modtime of the successor object version if any
|
||||
|
||||
Reference in New Issue
Block a user