summaryrefslogtreecommitdiff
path: root/src/mongo/db/process_health/config_server_health_observer.cpp
diff options
context:
space:
mode:
authorSilvia Surroca <silvia.surroca@mongodb.com>2022-06-03 11:58:55 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-06-03 12:36:42 +0000
commitcc541819baf3d798f8f0da1edf6f9beda10961a7 (patch)
tree95ec3ce26711e0749796795d0dfd78cf279fd108 /src/mongo/db/process_health/config_server_health_observer.cpp
parent9aafbc13112e03e9aa6889b0fb754adaac8d1e84 (diff)
downloadmongo-cc541819baf3d798f8f0da1edf6f9beda10961a7.tar.gz
SERVER-66431 Replace all usages of ShardType::ConfigNS by kConfigsvrShardsNamespace
Diffstat (limited to 'src/mongo/db/process_health/config_server_health_observer.cpp')
-rw-r--r--src/mongo/db/process_health/config_server_health_observer.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/mongo/db/process_health/config_server_health_observer.cpp b/src/mongo/db/process_health/config_server_health_observer.cpp
index 290387d4de5..5e8a9ada390 100644
--- a/src/mongo/db/process_health/config_server_health_observer.cpp
+++ b/src/mongo/db/process_health/config_server_health_observer.cpp
@@ -209,7 +209,7 @@ void ConfigServerHealthObserver::_runSmokeReadShardsCommand(std::shared_ptr<Chec
}();
BSONObjBuilder findCmdBuilder;
- FindCommandRequest findCommand(ShardType::ConfigNS);
+ FindCommandRequest findCommand(NamespaceString::kConfigsvrShardsNamespace);
findCommand.setReadConcern(readConcernObj);
findCommand.setLimit(1);
findCommand.setSingleBatch(true);
@@ -221,15 +221,16 @@ void ConfigServerHealthObserver::_runSmokeReadShardsCommand(std::shared_ptr<Chec
StatusWith<Shard::CommandResponse> findOneShardResponse{ErrorCodes::HostUnreachable,
"Config server read was not run"};
try {
- findOneShardResponse = Grid::get(ctx->opCtx.get())
- ->shardRegistry()
- ->getConfigShard()
- ->runCommand(ctx->opCtx.get(),
- readPref,
- ShardType::ConfigNS.db().toString(),
- findCmdBuilder.done(),
- kServerRequestTimeout,
- Shard::RetryPolicy::kNoRetry);
+ findOneShardResponse =
+ Grid::get(ctx->opCtx.get())
+ ->shardRegistry()
+ ->getConfigShard()
+ ->runCommand(ctx->opCtx.get(),
+ readPref,
+ NamespaceString::kConfigsvrShardsNamespace.db().toString(),
+ findCmdBuilder.done(),
+ kServerRequestTimeout,
+ Shard::RetryPolicy::kNoRetry);
} catch (const DBException& exc) {
findOneShardResponse = StatusWith<Shard::CommandResponse>(exc.toStatus());
}