diff options
author | Varun Ravichandran <varun.ravichandran@mongodb.com> | 2022-04-05 20:41:24 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-07 04:40:40 +0000 |
commit | df9851154bc9847dc6a736dcdb0e85c2176d0520 (patch) | |
tree | 9fa02afd6a1fedb0d43c85a29116f58a056ebfa7 /src/mongo/s | |
parent | 74076ecb661127f73990cfca898fcf9b914aabd5 (diff) | |
download | mongo-df9851154bc9847dc6a736dcdb0e85c2176d0520.tar.gz |
SERVER-65128: Improve integration testing and address bugs in setClusterParameter
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp b/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp index 7f5022ab989..71bda72dfaf 100644 --- a/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp +++ b/src/mongo/s/commands/cluster_get_cluster_parameter_cmd.cpp @@ -147,6 +147,7 @@ public: defaultParameterNames.reserve(requestedParameterNames.size() - onDiskParameterNames.size()); std::sort(onDiskParameterNames.begin(), onDiskParameterNames.end()); + std::sort(requestedParameterNames.begin(), requestedParameterNames.end()); std::set_difference(requestedParameterNames.begin(), requestedParameterNames.end(), onDiskParameterNames.begin(), @@ -156,7 +157,6 @@ public: for (const auto& defaultParameterName : defaultParameterNames) { auto defaultParameter = clusterParameters->get(defaultParameterName); BSONObjBuilder bob; - bob.append("_id"_sd, defaultParameterName); defaultParameter->append(opCtx, bob, defaultParameterName); retrievedParameters.push_back(bob.obj()); } |