diff options
Diffstat (limited to 'src/mongo/db/storage/storage_engine_test_fixture.h')
-rw-r--r-- | src/mongo/db/storage/storage_engine_test_fixture.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/storage/storage_engine_test_fixture.h b/src/mongo/db/storage/storage_engine_test_fixture.h index 074904803ad..cada701556d 100644 --- a/src/mongo/db/storage/storage_engine_test_fixture.h +++ b/src/mongo/db/storage/storage_engine_test_fixture.h @@ -157,7 +157,7 @@ public: } BSONObj spec = builder.append("name", key).append("v", 2).done(); - Collection* collection = + const Collection* collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace(opCtx, collNs); auto descriptor = std::make_unique<IndexDescriptor>(collection, IndexNames::findPluginName(spec), spec); @@ -171,13 +171,13 @@ public: } void indexBuildSuccess(OperationContext* opCtx, NamespaceString collNs, std::string key) { - Collection* collection = + const Collection* collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace(opCtx, collNs); DurableCatalog::get(opCtx)->indexBuildSuccess(opCtx, collection->getCatalogId(), key); } Status removeEntry(OperationContext* opCtx, StringData collNs, DurableCatalog* catalog) { - Collection* collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace( + const Collection* collection = CollectionCatalog::get(opCtx).lookupCollectionByNamespace( opCtx, NamespaceString(collNs)); return dynamic_cast<DurableCatalogImpl*>(catalog)->_removeEntry(opCtx, collection->getCatalogId()); |