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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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