mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05: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 {
|
||||
admClient, err := c.getAdminClient(ctx, deploymentID)
|
||||
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)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user