summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-11-04 21:57:14 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-06 03:20:31 +0000
commitca3c18008bff68e2684ad5954452c6513f7a744e (patch)
treee280511f4948c0c146a39df33576ff39fae3f26b /src/mongo/db/catalog
parenta53936d6b01f26babe3ac2be79be68e8334590b2 (diff)
downloadmongo-ca3c18008bff68e2684ad5954452c6513f7a744e.tar.gz
SERVER-52624: Remove useless setOplogCollectionName and getOplogCollectionName from LocalOplogInfo
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/capped_utils_test.cpp2
-rw-r--r--src/mongo/db/catalog/catalog_test_fixture.cpp1
-rw-r--r--src/mongo/db/catalog/create_collection_test.cpp1
-rw-r--r--src/mongo/db/catalog/database_test.cpp1
-rw-r--r--src/mongo/db/catalog/drop_database_test.cpp1
-rw-r--r--src/mongo/db/catalog/rename_collection_test.cpp1
6 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/catalog/capped_utils_test.cpp b/src/mongo/db/catalog/capped_utils_test.cpp
index 9bba12741bd..50c8b634197 100644
--- a/src/mongo/db/catalog/capped_utils_test.cpp
+++ b/src/mongo/db/catalog/capped_utils_test.cpp
@@ -66,8 +66,6 @@ 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>();
}
diff --git a/src/mongo/db/catalog/catalog_test_fixture.cpp b/src/mongo/db/catalog/catalog_test_fixture.cpp
index bcc198f72a8..02591eb0937 100644
--- a/src/mongo/db/catalog/catalog_test_fixture.cpp
+++ b/src/mongo/db/catalog/catalog_test_fixture.cpp
@@ -54,7 +54,6 @@ void CatalogTestFixture::setUp() {
// Set up oplog collection. If the WT storage engine is used, the oplog collection is expected
// to exist when fetching the next opTime (LocalOplogInfo::getNextOpTimes) to use for a write.
- repl::setOplogCollectionName(service);
repl::createOplog(_opCtx.get());
}
diff --git a/src/mongo/db/catalog/create_collection_test.cpp b/src/mongo/db/catalog/create_collection_test.cpp
index e6df170d7b6..e8c36b94fcc 100644
--- a/src/mongo/db/catalog/create_collection_test.cpp
+++ b/src/mongo/db/catalog/create_collection_test.cpp
@@ -71,7 +71,6 @@ void CreateCollectionTest::setUp() {
auto replCoord = std::make_unique<repl::ReplicationCoordinatorMock>(service);
ASSERT_OK(replCoord->setFollowerMode(repl::MemberState::RS_PRIMARY));
repl::ReplicationCoordinator::set(service, std::move(replCoord));
- repl::setOplogCollectionName(service);
_storage = std::make_unique<repl::StorageInterfaceImpl>();
}
diff --git a/src/mongo/db/catalog/database_test.cpp b/src/mongo/db/catalog/database_test.cpp
index 45a688b5caa..4badacce96f 100644
--- a/src/mongo/db/catalog/database_test.cpp
+++ b/src/mongo/db/catalog/database_test.cpp
@@ -89,7 +89,6 @@ void DatabaseTest::setUp() {
// Set up ReplicationCoordinator and create oplog.
repl::ReplicationCoordinator::set(service,
std::make_unique<repl::ReplicationCoordinatorMock>(service));
- repl::setOplogCollectionName(service);
repl::createOplog(_opCtx.get());
// Ensure that we are primary.
diff --git a/src/mongo/db/catalog/drop_database_test.cpp b/src/mongo/db/catalog/drop_database_test.cpp
index 8ee0a7bf6b2..e5b68aa013e 100644
--- a/src/mongo/db/catalog/drop_database_test.cpp
+++ b/src/mongo/db/catalog/drop_database_test.cpp
@@ -147,7 +147,6 @@ void DropDatabaseTest::setUp() {
auto replCoord = std::make_unique<repl::ReplicationCoordinatorMock>(service);
_replCoord = replCoord.get();
repl::ReplicationCoordinator::set(service, std::move(replCoord));
- repl::setOplogCollectionName(service);
repl::createOplog(_opCtx.get());
// Ensure that we are primary.
diff --git a/src/mongo/db/catalog/rename_collection_test.cpp b/src/mongo/db/catalog/rename_collection_test.cpp
index b96dc919b87..79e0e09910b 100644
--- a/src/mongo/db/catalog/rename_collection_test.cpp
+++ b/src/mongo/db/catalog/rename_collection_test.cpp
@@ -337,7 +337,6 @@ void RenameCollectionTest::setUp() {
auto replCoord = std::make_unique<repl::ReplicationCoordinatorMock>(service);
_replCoord = replCoord.get();
repl::ReplicationCoordinator::set(service, std::move(replCoord));
- repl::setOplogCollectionName(service);
repl::createOplog(_opCtx.get());
// Ensure that we are primary.