diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-05-19 08:49:26 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-17 15:52:43 +0000 |
commit | 00fbc981646d9e6ebc391f45a31f4070d4466753 (patch) | |
tree | 226e1cdfea70be2b4b71d872350e7fd8b82436a9 /src/mongo/db/catalog/capped_utils_test.cpp | |
parent | 9238911d0a46f26419ecdbec4293457b9e1a891d (diff) | |
download | mongo-00fbc981646d9e6ebc391f45a31f4070d4466753.tar.gz |
SERVER-38987 Replace ephemeralForTest storage engine with biggie implementation
ephemeralForTest is now a document level locking engine
unittests instantiate the oplog as it is required with doc-level locking engines
Added a 'incompatible_with_eft' tag for tests that don't work with this engine for different reasons.
Many concurrency suites are disabled due to excessive memory usage
Diffstat (limited to 'src/mongo/db/catalog/capped_utils_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/capped_utils_test.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/capped_utils_test.cpp b/src/mongo/db/catalog/capped_utils_test.cpp index 986552622c8..b3cef4c8279 100644 --- a/src/mongo/db/catalog/capped_utils_test.cpp +++ b/src/mongo/db/catalog/capped_utils_test.cpp @@ -66,6 +66,8 @@ void CappedUtilsTest::setUp() { ASSERT_OK(replCoord->setFollowerMode(repl::MemberState::RS_PRIMARY)); repl::ReplicationCoordinator::set(service, std::move(replCoord)); + repl::setOplogCollectionName(service); + _storage = std::make_unique<repl::StorageInterfaceImpl>(); } @@ -80,7 +82,9 @@ void CappedUtilsTest::tearDown() { * Creates an OperationContext. */ ServiceContext::UniqueOperationContext makeOpCtx() { - return cc().makeOperationContext(); + auto opCtx = cc().makeOperationContext(); + repl::createOplog(opCtx.get()); + return opCtx; } /** |