diff options
author | liubov.molchanova <liubov.molchanova@mongodb.com> | 2023-02-15 06:54:14 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-15 12:33:14 +0000 |
commit | 8f36c90d997708507e1d73c4200d79a92619f422 (patch) | |
tree | 37f245fdaa6dbaee5f3c94c1fe76c3218b0aa428 /src/mongo/db/curop_test.cpp | |
parent | 2554097b5996115fd55522c75308af946c9afb18 (diff) | |
download | mongo-8f36c90d997708507e1d73c4200d79a92619f422.tar.gz |
Revert "SERVER-73307 Ensure CurOpStack always has access to its OperationContext (#10536)"
This reverts commit ff7fcd42e84317e2a34e0b413ee4cc1d9be66884.
Diffstat (limited to 'src/mongo/db/curop_test.cpp')
-rw-r--r-- | src/mongo/db/curop_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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<Client> 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}); |