mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
replication: pass user tags while queueing (#18052)
Continues from #18032 - otherwise replication will fail on tag based rules.
This commit is contained in:
parent
b8ebe54e53
commit
b73699fad8
@ -31,6 +31,7 @@ import (
|
|||||||
|
|
||||||
"github.com/minio/madmin-go/v3"
|
"github.com/minio/madmin-go/v3"
|
||||||
"github.com/minio/minio/internal/bucket/replication"
|
"github.com/minio/minio/internal/bucket/replication"
|
||||||
|
"github.com/minio/minio/internal/crypto"
|
||||||
xhttp "github.com/minio/minio/internal/http"
|
xhttp "github.com/minio/minio/internal/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -539,6 +540,7 @@ func getHealReplicateObjectInfo(oi ObjectInfo, rcfg replicationConfig) Replicate
|
|||||||
ActualSize: asz,
|
ActualSize: asz,
|
||||||
Bucket: oi.Bucket,
|
Bucket: oi.Bucket,
|
||||||
VersionID: oi.VersionID,
|
VersionID: oi.VersionID,
|
||||||
|
ETag: oi.ETag,
|
||||||
ModTime: oi.ModTime,
|
ModTime: oi.ModTime,
|
||||||
ReplicationStatus: oi.ReplicationStatus,
|
ReplicationStatus: oi.ReplicationStatus,
|
||||||
ReplicationStatusInternal: oi.ReplicationStatusInternal,
|
ReplicationStatusInternal: oi.ReplicationStatusInternal,
|
||||||
@ -553,6 +555,8 @@ func getHealReplicateObjectInfo(oi ObjectInfo, rcfg replicationConfig) Replicate
|
|||||||
TargetStatuses: tgtStatuses,
|
TargetStatuses: tgtStatuses,
|
||||||
TargetPurgeStatuses: purgeStatuses,
|
TargetPurgeStatuses: purgeStatuses,
|
||||||
ReplicationTimestamp: tm,
|
ReplicationTimestamp: tm,
|
||||||
|
SSEC: crypto.SSEC.IsEncrypted(oi.UserDefined),
|
||||||
|
UserTags: oi.UserTags,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2274,6 +2274,7 @@ func scheduleReplication(ctx context.Context, oi ObjectInfo, o ObjectLayer, dsc
|
|||||||
ActualSize: asz,
|
ActualSize: asz,
|
||||||
Bucket: oi.Bucket,
|
Bucket: oi.Bucket,
|
||||||
VersionID: oi.VersionID,
|
VersionID: oi.VersionID,
|
||||||
|
ETag: oi.ETag,
|
||||||
ModTime: oi.ModTime,
|
ModTime: oi.ModTime,
|
||||||
ReplicationStatus: oi.ReplicationStatus,
|
ReplicationStatus: oi.ReplicationStatus,
|
||||||
ReplicationStatusInternal: oi.ReplicationStatusInternal,
|
ReplicationStatusInternal: oi.ReplicationStatusInternal,
|
||||||
@ -2287,6 +2288,8 @@ func scheduleReplication(ctx context.Context, oi ObjectInfo, o ObjectLayer, dsc
|
|||||||
TargetStatuses: tgtStatuses,
|
TargetStatuses: tgtStatuses,
|
||||||
TargetPurgeStatuses: purgeStatuses,
|
TargetPurgeStatuses: purgeStatuses,
|
||||||
ReplicationTimestamp: tm,
|
ReplicationTimestamp: tm,
|
||||||
|
SSEC: crypto.SSEC.IsEncrypted(oi.UserDefined),
|
||||||
|
UserTags: oi.UserTags,
|
||||||
}
|
}
|
||||||
|
|
||||||
if dsc.Synchronous() {
|
if dsc.Synchronous() {
|
||||||
|
@ -311,6 +311,7 @@ type ReplicateObjectInfo struct {
|
|||||||
Name string
|
Name string
|
||||||
Bucket string
|
Bucket string
|
||||||
VersionID string
|
VersionID string
|
||||||
|
ETag string
|
||||||
Size int64
|
Size int64
|
||||||
ActualSize int64
|
ActualSize int64
|
||||||
ModTime time.Time
|
ModTime time.Time
|
||||||
|
Loading…
Reference in New Issue
Block a user