From 317305d5f90a4e2a833cdc853dc1b9d8dbbcc750 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 11 Jan 2021 09:08:42 -0800 Subject: [PATCH] fix: regression in adding new replication targets (#11257) --- cmd/bucket-targets.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/bucket-targets.go b/cmd/bucket-targets.go index 36d7d8009..f5ad765fb 100644 --- a/cmd/bucket-targets.go +++ b/cmd/bucket-targets.go @@ -129,11 +129,7 @@ func (sys *BucketTargetSys) SetTarget(ctx context.Context, bucket string, tgt *m sys.Lock() defer sys.Unlock() - tgts, ok := sys.targetsMap[bucket] - if !ok { - return BucketRemoteTargetNotFound{Bucket: bucket} - } - + tgts := sys.targetsMap[bucket] newtgts := make([]madmin.BucketTarget, len(tgts)) labels := make(map[string]struct{}, len(tgts)) found := false