summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer.h
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/op_observer.h
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/op_observer.h')
-rw-r--r--src/mongo/db/op_observer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/op_observer.h b/src/mongo/db/op_observer.h
index 38027587930..e042cc3dfc5 100644
--- a/src/mongo/db/op_observer.h
+++ b/src/mongo/db/op_observer.h
@@ -42,6 +42,7 @@ namespace mongo {
struct InsertStatement;
class OperationContext;
+struct OplogSlot;
namespace repl {
class OpTime;
@@ -148,7 +149,8 @@ public:
Collection* coll,
const NamespaceString& collectionName,
const CollectionOptions& options,
- const BSONObj& idIndex) = 0;
+ const BSONObj& idIndex,
+ const OplogSlot& createOpTime) = 0;
/**
* This function logs an oplog entry when a 'collMod' command on a collection is executed.
* Since 'collMod' commands can take a variety of different formats, the 'o' field of the