diff options
Diffstat (limited to 'src/mongo/db/catalog/index_signature_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/index_signature_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/index_signature_test.cpp b/src/mongo/db/catalog/index_signature_test.cpp index fcf1d3d0b21..6595cfb29bf 100644 --- a/src/mongo/db/catalog/index_signature_test.cpp +++ b/src/mongo/db/catalog/index_signature_test.cpp @@ -48,9 +48,9 @@ public: // Build the specified index on the collection. WriteUnitOfWork wuow(opCtx()); // Get the index catalog associated with the test collection. - auto* indexCatalog = _coll->getWritableCollection()->getIndexCatalog(); + auto* indexCatalog = _coll->getWritableCollection(opCtx())->getIndexCatalog(); auto status = indexCatalog->createIndexOnEmptyCollection( - opCtx(), _coll->getWritableCollection(), spec); + opCtx(), _coll->getWritableCollection(opCtx()), spec); if (!status.isOK()) { return status.getStatus(); } |