replication healing: Fix typo when healing bucket quota info (#14966)

A typo is found in the replication healing code where an empty quota
configuration is sent to peer sites instead of the correct one.
.io>
This commit is contained in:
Anis Elleuch 2022-05-24 14:26:13 +01:00 committed by GitHub
parent 5be76856bd
commit 5041bfcb5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3560,7 +3560,6 @@ func (c *SiteReplicationSys) healBucketQuotaConfig(ctx context.Context, objAPI O
latestID, latestPeerName string
lastUpdate time.Time
latestQuotaConfig *string
latestCfgJSON []byte
latestQuotaConfigBytes []byte
)
@ -3614,7 +3613,7 @@ func (c *SiteReplicationSys) healBucketQuotaConfig(ctx context.Context, objAPI O
if err = admClient.SRPeerReplicateBucketMeta(ctx, madmin.SRBucketMeta{
Type: madmin.SRBucketMetaTypeQuotaConfig,
Bucket: bucket,
Quota: latestCfgJSON,
Quota: latestQuotaConfigBytes,
}); err != nil {
logger.LogIf(ctx, c.annotatePeerErr(peerName, "SRPeerReplicateBucketMeta", fmt.Errorf("Error healing quota config metadata for peer %s from peer %s : %s",
peerName, latestPeerName, err.Error())))