diff options
author | David Storch <david.storch@mongodb.com> | 2019-10-24 22:27:47 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-24 22:27:47 +0000 |
commit | f22a062b373ccdb5aa9232a2da435918b54c358e (patch) | |
tree | f10d356535a1bdccc57b1f51e19f632f5493a20f /src/mongo/db/concurrency/d_concurrency_test.cpp | |
parent | b4aa65fde0a61a8a8e2f7c439f928215b23c14e0 (diff) | |
download | mongo-f22a062b373ccdb5aa9232a2da435918b54c358e.tar.gz |
SERVER-43685 Move snapshot id handling above storage API.
This ensures that all storage engines support tracking of
snapshot ids, and by extenion, allows the query system to
rely on the validity of these ids for all engines.
Diffstat (limited to 'src/mongo/db/concurrency/d_concurrency_test.cpp')
-rw-r--r-- | src/mongo/db/concurrency/d_concurrency_test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/concurrency/d_concurrency_test.cpp b/src/mongo/db/concurrency/d_concurrency_test.cpp index 5af7a4f5595..92c4a943075 100644 --- a/src/mongo/db/concurrency/d_concurrency_test.cpp +++ b/src/mongo/db/concurrency/d_concurrency_test.cpp @@ -2052,11 +2052,12 @@ TEST_F(DConcurrencyTestFixture, CompatibleFirstStress) { namespace { class RecoveryUnitMock : public RecoveryUnitNoop { public: - virtual void abandonSnapshot() { + bool activeTransaction = true; + +private: + void doAbandonSnapshot() override { activeTransaction = false; } - - bool activeTransaction = true; }; } // namespace |