summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rollback_source_impl.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-04-15 13:10:17 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-15 18:17:12 +0000
commitd7f09737cb3354b45368c373169156140b933773 (patch)
treef0caf69713eef0fcc112cf8a4bdd922928b2f4f3 /src/mongo/db/repl/rollback_source_impl.cpp
parent2bad13a63315132a2793194d8d89f28dd7534928 (diff)
downloadmongo-d7f09737cb3354b45368c373169156140b933773.tar.gz
SERVER-47438 remove unused function RollbackSource::copyCollectionFromRemote()
Last reference was removed in commit 65e6cd5142082eab94a561036a53abdf60139155.
Diffstat (limited to 'src/mongo/db/repl/rollback_source_impl.cpp')
-rw-r--r--src/mongo/db/repl/rollback_source_impl.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mongo/db/repl/rollback_source_impl.cpp b/src/mongo/db/repl/rollback_source_impl.cpp
index bc111c75397..81edccee6ed 100644
--- a/src/mongo/db/repl/rollback_source_impl.cpp
+++ b/src/mongo/db/repl/rollback_source_impl.cpp
@@ -31,8 +31,6 @@
#include "mongo/db/repl/rollback_source_impl.h"
-#include "mongo/client/dbclient_connection.h"
-#include "mongo/db/cloner.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/namespace_string.h"
#include "mongo/db/repl/read_concern_args.h"
@@ -86,23 +84,6 @@ std::pair<BSONObj, NamespaceString> RollbackSourceImpl::findOneByUUID(const std:
return _getConnection()->findOneByUUID(db, uuid, filter, ReadConcernArgs::kImplicitDefault);
}
-void RollbackSourceImpl::copyCollectionFromRemote(OperationContext* opCtx,
- const NamespaceString& nss) const {
- std::string errmsg;
- auto tmpConn = std::make_unique<DBClientConnection>();
- uassert(15908, errmsg, tmpConn->connect(_source, StringData(), errmsg));
- uassertStatusOK(replAuthenticate(tmpConn.get()));
-
- // cloner owns _conn in unique_ptr
- Cloner cloner;
- cloner.setConnection(std::move(tmpConn));
- uassert(15909,
- str::stream() << "replSet rollback error resyncing collection " << nss.ns() << ' '
- << errmsg,
- cloner.copyCollection(
- opCtx, nss.ns(), BSONObj(), errmsg, true, CollectionOptions::parseForStorage));
-}
-
StatusWith<BSONObj> RollbackSourceImpl::getCollectionInfoByUUID(const std::string& db,
const UUID& uuid) const {
std::list<BSONObj> info = _getConnection()->getCollectionInfos(db, BSON("info.uuid" << uuid));