diff options
Diffstat (limited to 'src/mongo/db/repl/rs_rollback_test.cpp')
-rw-r--r-- | src/mongo/db/repl/rs_rollback_test.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/repl/rs_rollback_test.cpp b/src/mongo/db/repl/rs_rollback_test.cpp index 7ba48ce594d..0105bd8b6eb 100644 --- a/src/mongo/db/repl/rs_rollback_test.cpp +++ b/src/mongo/db/repl/rs_rollback_test.cpp @@ -79,7 +79,7 @@ OplogInterfaceMock::Operation makeNoopOplogEntryAndRecordId(Seconds seconds) { return std::make_pair(BSON("ts" << ts.getTimestamp()), RecordId(1)); } -OplogInterfaceMock::Operation makeDropIndexOplogEntry(Collection* collection, +OplogInterfaceMock::Operation makeDropIndexOplogEntry(const Collection* collection, BSONObj key, std::string indexName, int time) { @@ -96,7 +96,7 @@ OplogInterfaceMock::Operation makeDropIndexOplogEntry(Collection* collection, RecordId(time)); } -OplogInterfaceMock::Operation makeStartIndexBuildOplogEntry(Collection* collection, +OplogInterfaceMock::Operation makeStartIndexBuildOplogEntry(const Collection* collection, UUID buildUUID, BSONObj spec, int time) { @@ -112,7 +112,7 @@ OplogInterfaceMock::Operation makeStartIndexBuildOplogEntry(Collection* collecti RecordId(time)); } -OplogInterfaceMock::Operation makeCommitIndexBuildOplogEntry(Collection* collection, +OplogInterfaceMock::Operation makeCommitIndexBuildOplogEntry(const Collection* collection, UUID buildUUID, BSONObj spec, int time) { @@ -128,7 +128,7 @@ OplogInterfaceMock::Operation makeCommitIndexBuildOplogEntry(Collection* collect RecordId(time)); } -OplogInterfaceMock::Operation makeAbortIndexBuildOplogEntry(Collection* collection, +OplogInterfaceMock::Operation makeAbortIndexBuildOplogEntry(const Collection* collection, UUID buildUUID, BSONObj spec, int time) { @@ -150,7 +150,7 @@ OplogInterfaceMock::Operation makeAbortIndexBuildOplogEntry(Collection* collecti RecordId(time)); } -OplogInterfaceMock::Operation makeCreateIndexOplogEntry(Collection* collection, +OplogInterfaceMock::Operation makeCreateIndexOplogEntry(const Collection* collection, BSONObj key, std::string indexName, int time) { @@ -847,14 +847,14 @@ BSONObj idxSpec(NamespaceString nss, std::string id) { } // Returns the number of indexes that exist on the given collection. -int numIndexesOnColl(OperationContext* opCtx, NamespaceString nss, Collection* coll) { +int numIndexesOnColl(OperationContext* opCtx, NamespaceString nss, const Collection* coll) { Lock::DBLock dbLock(opCtx, nss.db(), MODE_X); auto indexCatalog = coll->getIndexCatalog(); ASSERT(indexCatalog); return indexCatalog->numIndexesReady(opCtx); } -int numIndexesInProgress(OperationContext* opCtx, NamespaceString nss, Collection* coll) { +int numIndexesInProgress(OperationContext* opCtx, NamespaceString nss, const Collection* coll) { Lock::DBLock dbLock(opCtx, nss.db(), MODE_X); auto indexCatalog = coll->getIndexCatalog(); ASSERT(indexCatalog); @@ -1738,7 +1738,7 @@ OpTime getOpTimeFromOplogEntry(const BSONObj& entry) { TEST_F(RSRollbackTest, RollbackApplyOpsCommand) { createOplog(_opCtx.get()); - Collection* coll = nullptr; + const Collection* coll = nullptr; CollectionOptions options; options.uuid = UUID::gen(); { |