diff options
author | Patrick Freed <patrick.freed@mongodb.com> | 2023-02-17 15:23:40 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-17 18:04:39 +0000 |
commit | b221af175a73b66a640a92fb364b8cc1a759e5e3 (patch) | |
tree | e7cf414f83050f1caa476f2febde773ec92f87c4 /src/mongo/db/db_raii_test.cpp | |
parent | 6289f39abc73003ad1f7ac9f0ecfc038170b131c (diff) | |
download | mongo-b221af175a73b66a640a92fb364b8cc1a759e5e3.tar.gz |
SERVER-73307 Ensure CurOpStack always has access to its OperationContext (#10536)
This also ensures base lock stats are properly subtracted out when getting the lock stats for a given sub operation (fixes SERVER-73571).
Diffstat (limited to 'src/mongo/db/db_raii_test.cpp')
-rw-r--r-- | src/mongo/db/db_raii_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/db_raii_test.cpp b/src/mongo/db/db_raii_test.cpp index 6f3bb7efcea..ce6099b6b68 100644 --- a/src/mongo/db/db_raii_test.cpp +++ b/src/mongo/db/db_raii_test.cpp @@ -74,7 +74,7 @@ std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> makeTailableQueryPlan( awaitDataState(opCtx).shouldWaitForInserts = true; awaitDataState(opCtx).waitForInsertsDeadline = opCtx->getServiceContext()->getPreciseClockSource()->now() + Seconds(1); - CurOp::get(opCtx)->ensureStarted(opCtx); + CurOp::get(opCtx)->ensureStarted(); const boost::intrusive_ptr<ExpressionContext> expCtx; |