From 663a0b77835dbabd3f2880084affd39f19558a7f Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Wed, 22 Feb 2023 16:38:34 +0800 Subject: [PATCH] save correct bucketInfo on it's indexes (#16685) --- cmd/peer-s3-client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/peer-s3-client.go b/cmd/peer-s3-client.go index 62393594d..5c14523ba 100644 --- a/cmd/peer-s3-client.go +++ b/cmd/peer-s3-client.go @@ -158,7 +158,7 @@ func (sys *S3PeerSys) GetBucketInfo(ctx context.Context, bucket string, opts Buc if err != nil { return err } - bucketInfos[idx] = bucketInfo + bucketInfos[idx+1] = bucketInfo return nil }, idx) }