save correct bucketInfo on it's indexes (#16685)

This commit is contained in:
jiuker authored and GitHub committed 2023-02-22 14:08:34 +05:30
1 parent 6efe4d1df6
commit 663a0b7783
1 file changed
+1 -1
+1 -1
View File
@@ -158,7 +158,7 @@ func (sys *S3PeerSys) GetBucketInfo(ctx context.Context, bucket string, opts Buc
if err != nil { if err != nil {
return err return err
} }
bucketInfos[idx] = bucketInfo bucketInfos[idx+1] = bucketInfo
return nil return nil
}, idx) }, idx)
} }