mirror of
https://github.com/minio/minio.git
synced 2025-04-14 08:15:47 -04:00
site replication: avoid retries when peer is offline (#17853)
This commit is contained in:
parent
4643efe6be
commit
875f4076ec
@ -2560,7 +2560,13 @@ func (c *SiteReplicationSys) siteReplicationStatus(ctx context.Context, objAPI O
|
|||||||
func(deploymentID string, p madmin.PeerInfo) error {
|
func(deploymentID string, p madmin.PeerInfo) error {
|
||||||
admClient, err := c.getAdminClient(ctx, deploymentID)
|
admClient, err := c.getAdminClient(ctx, deploymentID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
switch err.(type) {
|
||||||
|
case RemoteTargetConnectionErr:
|
||||||
|
sris[depIdx[deploymentID]] = madmin.SRInfo{}
|
||||||
|
return nil
|
||||||
|
default:
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
srInfo, err := admClient.SRMetaInfo(ctx, opts)
|
srInfo, err := admClient.SRMetaInfo(ctx, opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user