summaryrefslogtreecommitdiff
path: root/src/mongo/s/mongos_main.cpp
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2022-11-08 19:21:18 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-01 18:49:23 +0000
commit8473418af35f5bafd4a3b0a17e9c814dd1c0a213 (patch)
tree46642f0a33af9b8a7585ce190c501af0fe73c7a0 /src/mongo/s/mongos_main.cpp
parent362f7088aabd9e6f49e5f99525a0296723b3a9c3 (diff)
downloadmongo-8473418af35f5bafd4a3b0a17e9c814dd1c0a213.tar.gz
SERVER-32725 Config server uses KeysCollectionClientDirect
Diffstat (limited to 'src/mongo/s/mongos_main.cpp')
-rw-r--r--src/mongo/s/mongos_main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp
index f58b816b2ff..445804aa4d6 100644
--- a/src/mongo/s/mongos_main.cpp
+++ b/src/mongo/s/mongos_main.cpp
@@ -55,6 +55,7 @@
#include "mongo/db/dbdirectclient.h"
#include "mongo/db/ftdc/ftdc_mongos.h"
#include "mongo/db/initialize_server_global_state.h"
+#include "mongo/db/keys_collection_client_sharded.h"
#include "mongo/db/log_process_details.h"
#include "mongo/db/logical_time_validator.h"
#include "mongo/db/operation_context.h"
@@ -445,7 +446,10 @@ Status initializeSharding(OperationContext* opCtx) {
hookList->addHook(std::make_unique<rpc::ClientMetadataPropagationEgressHook>());
return hookList;
},
- boost::none);
+ boost::none,
+ [](ShardingCatalogClient* catalogClient) {
+ return std::make_unique<KeysCollectionClientSharded>(catalogClient);
+ });
if (!status.isOK()) {
return status;