mirror of
https://github.com/minio/minio.git
synced 2025-04-15 00:35:31 -04:00
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:
parent
5be76856bd
commit
5041bfcb5c
@ -3560,7 +3560,6 @@ func (c *SiteReplicationSys) healBucketQuotaConfig(ctx context.Context, objAPI O
|
|||||||
latestID, latestPeerName string
|
latestID, latestPeerName string
|
||||||
lastUpdate time.Time
|
lastUpdate time.Time
|
||||||
latestQuotaConfig *string
|
latestQuotaConfig *string
|
||||||
latestCfgJSON []byte
|
|
||||||
latestQuotaConfigBytes []byte
|
latestQuotaConfigBytes []byte
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -3614,7 +3613,7 @@ func (c *SiteReplicationSys) healBucketQuotaConfig(ctx context.Context, objAPI O
|
|||||||
if err = admClient.SRPeerReplicateBucketMeta(ctx, madmin.SRBucketMeta{
|
if err = admClient.SRPeerReplicateBucketMeta(ctx, madmin.SRBucketMeta{
|
||||||
Type: madmin.SRBucketMetaTypeQuotaConfig,
|
Type: madmin.SRBucketMetaTypeQuotaConfig,
|
||||||
Bucket: bucket,
|
Bucket: bucket,
|
||||||
Quota: latestCfgJSON,
|
Quota: latestQuotaConfigBytes,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
logger.LogIf(ctx, c.annotatePeerErr(peerName, "SRPeerReplicateBucketMeta", fmt.Errorf("Error healing quota config metadata for peer %s from peer %s : %s",
|
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())))
|
peerName, latestPeerName, err.Error())))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user