mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: inconsistent replication delete marker timestamps (#15956)
This commit is contained in:
@@ -676,7 +676,7 @@ func (c *SiteReplicationSys) MakeBucketHook(ctx context.Context, bucket string,
|
||||
optsMap["forceCreate"] = "true"
|
||||
}
|
||||
createdAt, _ := globalBucketMetadataSys.CreatedAt(bucket)
|
||||
optsMap["createdAt"] = createdAt.Format(time.RFC3339Nano)
|
||||
optsMap["createdAt"] = createdAt.UTC().Format(time.RFC3339Nano)
|
||||
opts.CreatedAt = createdAt
|
||||
|
||||
// Create bucket and enable versioning on all peers.
|
||||
@@ -4253,7 +4253,7 @@ func (c *SiteReplicationSys) healBucket(ctx context.Context, objAPI ObjectLayer,
|
||||
optsMap["versioningEnabled"] = "true"
|
||||
opts.VersioningEnabled = true
|
||||
opts.CreatedAt = bStatus.CreatedAt
|
||||
optsMap["createdAt"] = bStatus.CreatedAt.Format(time.RFC3339Nano)
|
||||
optsMap["createdAt"] = bStatus.CreatedAt.UTC().Format(time.RFC3339Nano)
|
||||
|
||||
if bStatus.ObjectLockConfig != nil {
|
||||
config, err := base64.StdEncoding.DecodeString(*bStatus.ObjectLockConfig)
|
||||
|
||||
Reference in New Issue
Block a user