cleanup: Simplify usage of MinIOSourceProxyRequest (#19553)

This replaces a convoluted condition that ultimately evaluated to

"is this HTTP header present in the request or not?"
This commit is contained in:
Robert Lützner
2024-04-19 12:23:31 +00:00
committed by GitHub
parent 03767d26da
commit 928c0181bf
3 changed files with 6 additions and 12 deletions

View File

@@ -90,7 +90,6 @@ type ObjectOptions struct {
PreserveETag string // preserves this etag during a PUT call.
NoLock bool // indicates to lower layers if the caller is expecting to hold locks.
ProxyRequest bool // only set for GET/HEAD in active-active replication scenario
ProxyHeaderSet bool // only set for GET/HEAD in active-active replication scenario
ReplicationRequest bool // true only if replication request
ReplicationSourceTaggingTimestamp time.Time // set if MinIOSourceTaggingTimestamp received
ReplicationSourceLegalholdTimestamp time.Time // set if MinIOSourceObjectLegalholdTimestamp received