summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_common.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2022-03-09 07:57:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-09 08:45:38 +0000
commitfb608f9bc8fe237694152b42f568ec97a12b4081 (patch)
treef68362d2a0104cf40e1236a206cac27fc9da4164 /src/mongo/db/service_entry_point_common.cpp
parentff90764302229844a8431c68dcaf3f40e4db9a19 (diff)
downloadmongo-fb608f9bc8fe237694152b42f568ec97a12b4081.tar.gz
SERVER-64057 Implement a scoped object for setting the expected shard/database versions
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r--src/mongo/db/service_entry_point_common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index 84d99a67405..2cfb3f2286e 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -1575,8 +1575,8 @@ void ExecCommandDatabase::_initiateCommand() {
databaseVersion = DatabaseVersion(databaseVersionElem.Obj());
}
- OperationShardingState::get(opCtx).initializeClientRoutingVersions(
- namespaceForSharding, shardVersion, databaseVersion);
+ OperationShardingState::setShardRole(
+ opCtx, namespaceForSharding, shardVersion, databaseVersion);
}
_scoped = _execContext->behaviors->scopedOperationCompletionShardingActions(opCtx);