summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/sessions_collection_config_server.cpp
diff options
context:
space:
mode:
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;