diff options
author | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-05-09 21:26:06 -0400 |
---|---|---|
committer | Xiangyu Yao <xiangyu.yao@mongodb.com> | 2018-05-16 13:32:58 -0400 |
commit | 7cbc98eb835b4613e171ff11b567de3528d2ff6b (patch) | |
tree | 882ef01f2424c8ce64da8f3a9ae14519ffb80596 /src/mongo/db/session_test.cpp | |
parent | e716867bb5c36f7ad4686cf020f5f35b9cd9636e (diff) | |
download | mongo-7cbc98eb835b4613e171ff11b567de3528d2ff6b.tar.gz |
SERVER-34692 Move txnNumber to subdocument in currentOp
Diffstat (limited to 'src/mongo/db/session_test.cpp')
-rw-r--r-- | src/mongo/db/session_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/session_test.cpp b/src/mongo/db/session_test.cpp index 67e79cbacec..38f4a9e2563 100644 --- a/src/mongo/db/session_test.cpp +++ b/src/mongo/db/session_test.cpp @@ -745,13 +745,14 @@ TEST_F(SessionTest, ReportStashedResources) { const auto lockerInfo = opCtx()->lockState()->getLockerInfo(); ASSERT(lockerInfo); + auto txnDoc = BSON("parameters" << BSON("txnNumber" << txnNum)); auto reportBuilder = std::move(BSONObjBuilder() << "host" << getHostNameCachedAndPort() << "desc" << "inactive transaction" << "lsid" << sessionId.toBSON() - << "txnNumber" - << txnNum + << "transaction" + << txnDoc << "waitingForLock" << false << "active" |