Merge pull request #9070 from sfc-gh-ajbeamon/fix-invalid-json-access

Fix incorrect JSON access of blob metadata partitions in REST KMS test
This commit is contained in:
A.J. Beamon 2023-01-11 12:24:48 -08:00 committed by GitHub
commit ac2a26d269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ Standalone<VectorRef<BlobMetadataDetailsRef>> parseBlobMetadataResponse(Referenc
// just do extra memory copy for simplicity here
Standalone<VectorRef<StringRef>> partitions;
if (isPartitionsPresent) {
for (const auto& partition : doc[BLOB_METADATA_PARTITIONS_TAG].GetArray()) {
for (const auto& partition : detail[BLOB_METADATA_PARTITIONS_TAG].GetArray()) {
if (!partition.IsString()) {
TraceEvent("ParseBlobMetadataResponseFailurePartitionNotString", ctx->uid)
.detail("Type", partition.GetType());