summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/sessions_collection_config_server.cpp
diff options
context:
space:
mode:
authorTommaso Tocci <tommaso.tocci@mongodb.com>2020-09-02 13:45:13 +0200
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-15 12:38:57 +0000
commita8913858697363a26b06996f0821045b550bea27 (patch)
tree0caa3253a8c55c3280aba125c4470addcd189f65 /src/mongo/db/s/sessions_collection_config_server.cpp
parentfba2766101503b6c19b560c399c85243348bccf9 (diff)
downloadmongo-a8913858697363a26b06996f0821045b550bea27.tar.gz
SERVER-46202 Implement ShardRegistry on top of ReadThroughCache
Diffstat (limited to 'src/mongo/db/s/sessions_collection_config_server.cpp')
-rw-r--r--src/mongo/db/s/sessions_collection_config_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/sessions_collection_config_server.cpp b/src/mongo/db/s/sessions_collection_config_server.cpp
index 95ee087e5ae..99eb2277d02 100644
--- a/src/mongo/db/s/sessions_collection_config_server.cpp
+++ b/src/mongo/db/s/sessions_collection_config_server.cpp
@@ -61,7 +61,7 @@ void SessionsCollectionConfigServer::_shardCollectionIfNeeded(OperationContext*
uassert(ErrorCodes::ShardNotFound,
str::stream() << "Failed to create " << NamespaceString::kLogicalSessionsNamespace
<< ": cannot create the collection until there are shards",
- Grid::get(opCtx)->shardRegistry()->getNumShards() != 0);
+ Grid::get(opCtx)->shardRegistry()->getNumShardsNoReload() != 0);
// First, shard the sessions collection to create it.
ConfigsvrShardCollectionRequest shardCollection;