diff --git a/api-get-options.go b/api-get-options.go index 08ae95c42..0082c1fa7 100644 --- a/api-get-options.go +++ b/api-get-options.go @@ -27,8 +27,9 @@ import ( // AdvancedGetOptions for internal use by MinIO server - not intended for client use. type AdvancedGetOptions struct { - ReplicationDeleteMarker bool - ReplicationProxyRequest string + ReplicationDeleteMarker bool + IsReplicationReadyForDeleteMarker bool + ReplicationProxyRequest string } // GetObjectOptions are used to specify additional headers or options diff --git a/api-stat.go b/api-stat.go index 5201939ab..418d6cb25 100644 --- a/api-stat.go +++ b/api-stat.go @@ -70,6 +70,9 @@ func (c *Client) StatObject(ctx context.Context, bucketName, objectName string, if opts.Internal.ReplicationDeleteMarker { headers.Set(minIOBucketReplicationDeleteMarker, "true") } + if opts.Internal.IsReplicationReadyForDeleteMarker { + headers.Set(isMinioTgtReplicationReady, "true") + } urlValues := make(url.Values) if opts.VersionID != "" { diff --git a/constants.go b/constants.go index abb549f8a..1c3e8e6f6 100644 --- a/constants.go +++ b/constants.go @@ -103,4 +103,6 @@ const ( minIOForceDelete = "x-minio-force-delete" // Header indicates delete marker replication request can be sent by source now. minioTgtReplicationReady = "X-Minio-Replication-Ready" + // Header asks if delete marker replication request can be sent by source now. + isMinioTgtReplicationReady = "X-Minio-Check-Replication-Ready" )