From 8f36c90d997708507e1d73c4200d79a92619f422 Mon Sep 17 00:00:00 2001 From: "liubov.molchanova" Date: Wed, 15 Feb 2023 06:54:14 +0000 Subject: Revert "SERVER-73307 Ensure CurOpStack always has access to its OperationContext (#10536)" This reverts commit ff7fcd42e84317e2a34e0b413ee4cc1d9be66884. --- src/mongo/db/curop_test.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mongo/db/curop_test.cpp') diff --git a/src/mongo/db/curop_test.cpp b/src/mongo/db/curop_test.cpp index b27272082ab..d944a29f1de 100644 --- a/src/mongo/db/curop_test.cpp +++ b/src/mongo/db/curop_test.cpp @@ -206,7 +206,8 @@ TEST(CurOpTest, OptionalAdditiveMetricsNotDisplayedIfUninitialized) { BSONObj command = BSON("a" << 3); // Set dummy 'ns' and 'command'. - curop->setGenericOpRequestDetails(NamespaceString::createNamespaceString_forTest("myDb.coll"), + curop->setGenericOpRequestDetails(opCtx.get(), + NamespaceString::createNamespaceString_forTest("myDb.coll"), nullptr, command, NetworkOp::dbQuery); @@ -234,7 +235,7 @@ TEST(CurOpTest, ShouldNotReportFailpointMsgIfNotSet) { BSONObjBuilder reportedStateWithoutFailpointMsg; { stdx::lock_guard lk(*opCtx->getClient()); - curop->reportState(&reportedStateWithoutFailpointMsg); + curop->reportState(opCtx.get(), &reportedStateWithoutFailpointMsg); } auto bsonObj = reportedStateWithoutFailpointMsg.done(); @@ -256,7 +257,7 @@ TEST(CurOpTest, ElapsedTimeReflectsTickSource) { ASSERT_FALSE(curop->isStarted()); - curop->ensureStarted(); + curop->ensureStarted(opCtx.get()); ASSERT_TRUE(curop->isStarted()); tickSourceMock->advance(Milliseconds{20}); -- cgit v1.2.1