summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/mr_test.cpp
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@10gen.com>2018-07-03 17:23:47 -0400
committerMatthew Russotto <matthew.russotto@10gen.com>2018-07-03 17:23:47 -0400
commit7c8d941c7f6904a65476ca91c6013067d2149fe8 (patch)
treedad323ec1bb1d1de96378dd636dbaeb1a9115189 /src/mongo/db/commands/mr_test.cpp
parent5b8b8934c0007decb3d62915b1265f2dadfc9f4b (diff)
downloadmongo-7c8d941c7f6904a65476ca91c6013067d2149fe8.tar.gz
SERVER-34414 Create system indexes using the normal index creation and replication process.
Do not create them directly on secondaries. Do create oplog entries for index creation.
Diffstat (limited to 'src/mongo/db/commands/mr_test.cpp')
-rw-r--r--src/mongo/db/commands/mr_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/mr_test.cpp b/src/mongo/db/commands/mr_test.cpp
index 9a640137ece..f8c81c473a5 100644
--- a/src/mongo/db/commands/mr_test.cpp
+++ b/src/mongo/db/commands/mr_test.cpp
@@ -292,7 +292,8 @@ public:
Collection* coll,
const NamespaceString& collectionName,
const CollectionOptions& options,
- const BSONObj& idIndex) override;
+ const BSONObj& idIndex,
+ const OplogSlot& createOpTime) override;
// Hook for onInserts. Defaults to a no-op function but may be overridden to inject exceptions
// while mapReduce inserts its results into the temporary output collection.
@@ -315,7 +316,8 @@ void MapReduceOpObserver::onCreateCollection(OperationContext*,
Collection*,
const NamespaceString& collectionName,
const CollectionOptions& options,
- const BSONObj&) {
+ const BSONObj&,
+ const OplogSlot&) {
if (!options.temp) {
return;
}