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/catalog/rename_collection_test.cpp | |
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/catalog/rename_collection_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/rename_collection_test.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/rename_collection_test.cpp b/src/mongo/db/catalog/rename_collection_test.cpp index 300bc94192f..092b1328406 100644 --- a/src/mongo/db/catalog/rename_collection_test.cpp +++ b/src/mongo/db/catalog/rename_collection_test.cpp @@ -88,7 +88,8 @@ public: Collection* coll, const NamespaceString& collectionName, const CollectionOptions& options, - const BSONObj& idIndex) override; + const BSONObj& idIndex, + const OplogSlot& createOpTime) override; repl::OpTime onDropCollection(OperationContext* opCtx, const NamespaceString& collectionName, @@ -165,9 +166,10 @@ void OpObserverMock::onCreateCollection(OperationContext* opCtx, Collection* coll, const NamespaceString& collectionName, const CollectionOptions& options, - const BSONObj& idIndex) { + const BSONObj& idIndex, + const OplogSlot& createOpTime) { _logOp(opCtx, collectionName, "create"); - OpObserverNoop::onCreateCollection(opCtx, coll, collectionName, options, idIndex); + OpObserverNoop::onCreateCollection(opCtx, coll, collectionName, options, idIndex, createOpTime); } repl::OpTime OpObserverMock::onDropCollection(OperationContext* opCtx, |