fix: typo in site replication version healing (#15103)

This commit is contained in:
Poorna 2022-06-17 16:43:24 -07:00 committed by GitHub
parent 7f629df4d5
commit 8b9a19eef1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3712,8 +3712,8 @@ func (c *SiteReplicationSys) healVersioningMetadata(ctx context.Context, objAPI
continue
}
if dID == globalDeploymentID {
if err := globalBucketMetadataSys.Update(ctx, bucket, bucketSSEConfig, latestVersioningConfigBytes); err != nil {
logger.LogIf(ctx, fmt.Errorf("Error healing sse metadata from peer site %s : %w", latestPeerName, err))
if err := globalBucketMetadataSys.Update(ctx, bucket, bucketVersioningConfig, latestVersioningConfigBytes); err != nil {
logger.LogIf(ctx, fmt.Errorf("Error healing versioning metadata from peer site %s : %w", latestPeerName, err))
}
continue
}