summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-07-28 09:48:30 -0400
committerEliot Horowitz <eliot@10gen.com>2014-07-28 09:48:30 -0400
commitcdcce7b8a9599d59c76c4255bd1aa62821b9b17d (patch)
treeca030e0756917017053d95c41ef058b999c40030
parent18d159e139ce8651b8f7d3c99f94ebc31f84c135 (diff)
downloadmongo-cdcce7b8a9599d59c76c4255bd1aa62821b9b17d.tar.gz
SERVER-14378: clean up cloner changes for no system namespaces
-rw-r--r--src/mongo/db/cloner.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp
index eefdd25cbb2..1c21a550830 100644
--- a/src/mongo/db/cloner.cpp
+++ b/src/mongo/db/cloner.cpp
@@ -299,7 +299,9 @@ namespace mongo {
verify( collection );
}
- Status status = collection->getIndexCatalog()->createIndex(txn, spec, mayBeInterrupted);
+ Status status = collection->getIndexCatalog()->createIndex(txn,
+ spec,
+ mayBeInterrupted);
if ( status.code() == ErrorCodes::IndexAlreadyExists ) {
// no-op
}
@@ -374,7 +376,7 @@ namespace mongo {
// main data
copy(txn, dbName,
- NamespaceString(ns), NamespaceString(ns),
+ nss, nss,
logForRepl, false, true, mayYield, mayBeInterrupted,
Query(query).snapshot());