summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r--src/mongo/db/service_context.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp
index 9051510e470..0de0541aa88 100644
--- a/src/mongo/db/service_context.cpp
+++ b/src/mongo/db/service_context.cpp
@@ -254,10 +254,7 @@ ServiceContext::UniqueOperationContext ServiceContext::makeOperationContext(Clie
onCreate(opCtx.get(), _clientObservers);
ScopeGuard onCreateGuard([&] { onDestroy(opCtx.get(), _clientObservers); });
- invariant(
- opCtx->lockState(),
- str::stream() << "No lock state configured. This could be a missing build dependency. "
- << ProcessInfo().getProcessName());
+ invariant(opCtx->lockState(), ProcessInfo().getProcessName());
if (!opCtx->recoveryUnit()) {
opCtx->setRecoveryUnit(std::make_unique<RecoveryUnitNoop>(),