summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/database_sharding_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/database_sharding_state.cpp')
-rw-r--r--src/mongo/db/s/database_sharding_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/database_sharding_state.cpp b/src/mongo/db/s/database_sharding_state.cpp
index da908b6ea38..541df998f01 100644
--- a/src/mongo/db/s/database_sharding_state.cpp
+++ b/src/mongo/db/s/database_sharding_state.cpp
@@ -77,7 +77,7 @@ const ServiceContext::Decoration<DatabaseShardingStateMap> DatabaseShardingState
DatabaseShardingState::ScopedDatabaseShardingState::ScopedDatabaseShardingState(
OperationContext* opCtx, const DatabaseName& dbName, LockMode mode)
- : _lock(nullptr, opCtx->lockState(), ResourceId(RESOURCE_MUTEX, dbName), mode),
+ : _lock(opCtx->lockState(), ResourceId(RESOURCE_MUTEX, dbName), mode),
_dss(DatabaseShardingStateMap::get(opCtx->getServiceContext()).getOrCreate(dbName)) {}
DatabaseShardingState::ScopedDatabaseShardingState::ScopedDatabaseShardingState(