summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r--src/mongo/dbtests/storage_timestamp_tests.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp
index c4e2e35c856..95afd85a963 100644
--- a/src/mongo/dbtests/storage_timestamp_tests.cpp
+++ b/src/mongo/dbtests/storage_timestamp_tests.cpp
@@ -2914,7 +2914,8 @@ public:
sessionInfo = getSessionTxnInfoAtTimestamp(secondOplogEntryTs, true);
ASSERT_EQ(sessionInfo["state"].String(), "inProgress");
- ASSERT_EQ(sessionInfo["lastWriteOpTime"]["ts"].timestamp(), secondOplogEntryTs);
+ // The transaction table is only updated at the start of the transaction.
+ ASSERT_EQ(sessionInfo["lastWriteOpTime"]["ts"].timestamp(), firstOplogEntryTs);
sessionInfo = getSessionTxnInfoAtTimestamp(commitEntryTs, true);
ASSERT_EQ(sessionInfo["state"].String(), "committed");
@@ -3091,7 +3092,8 @@ public:
sessionInfo = getSessionTxnInfoAtTimestamp(secondOplogEntryTs, true);
ASSERT_EQ(sessionInfo["state"].String(), "inProgress");
- ASSERT_EQ(sessionInfo["lastWriteOpTime"]["ts"].timestamp(), secondOplogEntryTs);
+ // The transaction table is only updated at the start of the transaction.
+ ASSERT_EQ(sessionInfo["lastWriteOpTime"]["ts"].timestamp(), firstOplogEntryTs);
sessionInfo = getSessionTxnInfoAtTimestamp(prepareEntryTs, true);
ASSERT_EQ(sessionInfo["state"].String(), "prepared");