diff options
author | Dan Pasette <dan@10gen.com> | 2015-03-09 17:34:54 -0400 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2015-03-09 17:44:29 -0400 |
commit | 8e6d7dc39c51c58d0158071a717113314c26b0a0 (patch) | |
tree | ea8a434c93596a8a1df19a8bde98dbaf6f93467c /src/mongo/db/cloner.cpp | |
parent | ff83bfcc085a777b7368a70b12bb874f0e24123d (diff) | |
download | mongo-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.cpp | 5 |
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(); |