summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.cpp
diff options
context:
space:
mode:
authorDan Pasette <dan@10gen.com>2015-03-09 17:34:54 -0400
committerDan Pasette <dan@mongodb.com>2015-03-09 17:44:29 -0400
commit8e6d7dc39c51c58d0158071a717113314c26b0a0 (patch)
treeea8a434c93596a8a1df19a8bde98dbaf6f93467c /src/mongo/db/cloner.cpp
parentff83bfcc085a777b7368a70b12bb874f0e24123d (diff)
downloadmongo-8e6d7dc39c51c58d0158071a717113314c26b0a0.tar.gz
SERVER-17515 fixed namespace in oplog entry when using the cloner to copy indexes
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r--src/mongo/db/cloner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp
index c14e5460c0f..90f13bb0094 100644
--- a/src/mongo/db/cloner.cpp
+++ b/src/mongo/db/cloner.cpp
@@ -366,9 +366,12 @@ namespace mongo {
WriteUnitOfWork wunit(txn);
indexer.commit();
if (logForRepl) {
+ const string targetSystemIndexesCollectionName =
+ to_collection.getSystemIndexesCollection();
+ const char* createIndexNs = targetSystemIndexesCollectionName.c_str();
for (vector<BSONObj>::const_iterator it = indexesToBuild.begin();
it != indexesToBuild.end(); ++it) {
- repl::logOp(txn, "i", to_collection.ns().c_str(), *it);
+ repl::logOp(txn, "i", createIndexNs, *it);
}
}
wunit.commit();