diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2021-02-19 20:49:15 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-19 23:12:05 +0000 |
commit | f8993f98d989eed4b5a528131b3d826e951b15a1 (patch) | |
tree | 4ca53e3a23aa926bda89fbc1e28d98a5ed4ff1a6 /src/mongo/db/storage/wiredtiger | |
parent | 1544f419f57da5fe5aba2094afff6e8f663feb18 (diff) | |
download | mongo-f8993f98d989eed4b5a528131b3d826e951b15a1.tar.gz |
SERVER-54248 Fix RecordId usage in the NoOverlapReadSource unit test
Diffstat (limited to 'src/mongo/db/storage/wiredtiger')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit_test.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit_test.cpp index 008653fe9ff..b2d8efb6a7c 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit_test.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit_test.cpp @@ -225,6 +225,7 @@ TEST_F(WiredTigerRecoveryUnitTestFixture, NoOverlapReadSource) { rs->insertRecord(opCtx2, str.c_str(), str.size() + 1, Timestamp()); ASSERT_OK(opCtx2->recoveryUnit()->setTimestamp(ts2)); ASSERT_OK(res); + rid2 = res.getValue(); // While holding open a transaction with opCtx2, perform an insert at ts3 with opCtx1. This // creates a "hole". @@ -254,7 +255,6 @@ TEST_F(WiredTigerRecoveryUnitTestFixture, NoOverlapReadSource) { ASSERT_FALSE(rs->findRecord(opCtx1, rid3, &unused)); wuow.commit(); - rid2 = res.getValue(); } // Now that the hole has been closed, kNoOverlap should see all 3 records. |