summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-05-20 17:07:22 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-05-22 11:01:24 -0400
commiteadabb492ee5e8ad8a37bb3aedd7d198c772da62 (patch)
tree1d60f246e23ba9e886d402773a7146eeafa0aebd /src/mongo/db/cloner.h
parent8d7ea5bdb7385e6d08280aeafbc27e955ec69e0a (diff)
downloadmongo-eadabb492ee5e8ad8a37bb3aedd7d198c772da62.tar.gz
SERVER-18567 Replace usages of the legacy ConnectionString::parse
This is all the non-sharding code, which is using it.
Diffstat (limited to 'src/mongo/db/cloner.h')
-rw-r--r--src/mongo/db/cloner.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/cloner.h b/src/mongo/db/cloner.h
index e9218d8ab67..d537932dc83 100644
--- a/src/mongo/db/cloner.h
+++ b/src/mongo/db/cloner.h
@@ -50,14 +50,14 @@ namespace mongo {
_conn.reset(c);
}
- /** copy the entire database */
- bool go(OperationContext* txn,
- const std::string& toDBName,
- const std::string& masterHost,
- const CloneOptions& opts,
- std::set<std::string>* clonedColls,
- std::string& errmsg,
- int *errCode = 0);
+ /**
+ * Copies an entire database from the specified host.
+ */
+ Status copyDb(OperationContext* txn,
+ const std::string& toDBName,
+ const std::string& masterHost,
+ const CloneOptions& opts,
+ std::set<std::string>* clonedColls);
bool copyCollection(OperationContext* txn,
const std::string& ns,