diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2018-07-03 17:23:47 -0400 |
---|---|---|
committer | Matthew Russotto <matthew.russotto@10gen.com> | 2018-07-03 17:23:47 -0400 |
commit | 7c8d941c7f6904a65476ca91c6013067d2149fe8 (patch) | |
tree | dad323ec1bb1d1de96378dd636dbaeb1a9115189 /src/mongo/db/op_observer_registry.h | |
parent | 5b8b8934c0007decb3d62915b1265f2dadfc9f4b (diff) | |
download | mongo-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_registry.h')
-rw-r--r-- | src/mongo/db/op_observer_registry.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/op_observer_registry.h b/src/mongo/db/op_observer_registry.h index 2ab2b971219..2d322329c99 100644 --- a/src/mongo/db/op_observer_registry.h +++ b/src/mongo/db/op_observer_registry.h @@ -116,10 +116,11 @@ public: Collection* coll, const NamespaceString& collectionName, const CollectionOptions& options, - const BSONObj& idIndex) override { + const BSONObj& idIndex, + const OplogSlot& createOpTime) override { ReservedTimes times{opCtx}; for (auto& o : _observers) - o->onCreateCollection(opCtx, coll, collectionName, options, idIndex); + o->onCreateCollection(opCtx, coll, collectionName, options, idIndex, createOpTime); } void onCollMod(OperationContext* const opCtx, |