diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-03-07 17:11:12 -0500 |
---|---|---|
committer | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2019-03-21 21:22:24 -0400 |
commit | 78eaa3cf538764d5aa5a09c5997532a4c3b2bca8 (patch) | |
tree | 1b5fcc32ad4b9cc2369b9fcc7ae95be2b09da3f7 /src/mongo/dbtests | |
parent | 9fa4a356cc1d89adc1edd4321117503ce90e2d4b (diff) | |
download | mongo-78eaa3cf538764d5aa5a09c5997532a4c3b2bca8.tar.gz |
SERVER-39679 Get oldest transaction time when snapshotting
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/storage_timestamp_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp index 2a326ced824..6a45c1d0223 100644 --- a/src/mongo/dbtests/storage_timestamp_tests.cpp +++ b/src/mongo/dbtests/storage_timestamp_tests.cpp @@ -432,8 +432,8 @@ public: void assertOldestActiveTxnTimestampEquals(const boost::optional<Timestamp>& ts, const Timestamp& atTs) { - OneOffRead oor(_opCtx, atTs); - ASSERT_EQ(TransactionParticipant::getOldestActiveTimestamp(_opCtx), ts); + auto oldest = TransactionParticipant::getOldestActiveTimestamp(atTs); + ASSERT_EQ(oldest, ts); } void assertHasStartOpTime() { |