diff options
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r-- | src/mongo/db/cloner.cpp | 6 |
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()); |