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

This commit is contained in:
jiuker
2023-02-22 16:38:34 +08:00
committed by GitHub
parent 6efe4d1df6
commit 663a0b7783

View File

@@ -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)
}