summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/uncommitted_catalog_updates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/uncommitted_catalog_updates.cpp')
-rw-r--r--src/mongo/db/catalog/uncommitted_catalog_updates.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/uncommitted_catalog_updates.cpp b/src/mongo/db/catalog/uncommitted_catalog_updates.cpp
index ba987b36d35..69d405626b7 100644
--- a/src/mongo/db/catalog/uncommitted_catalog_updates.cpp
+++ b/src/mongo/db/catalog/uncommitted_catalog_updates.cpp
@@ -117,12 +117,13 @@ void UncommittedCatalogUpdates::_createCollection(OperationContext* opCtx,
// This will throw when registering a namespace which is already in use.
CollectionCatalog::write(opCtx, [&, coll = createdColl](CollectionCatalog& catalog) {
- catalog.registerCollection(opCtx, uuid, coll);
+ catalog.registerCollection(opCtx, uuid, coll, /*ts=*/boost::none);
});
opCtx->recoveryUnit()->onRollback([opCtx, uuid]() {
CollectionCatalog::write(opCtx, [&](CollectionCatalog& catalog) {
- catalog.deregisterCollection(opCtx, uuid, /*isDropPending=*/false);
+ catalog.deregisterCollection(
+ opCtx, uuid, /*isDropPending=*/false, /*ts=*/boost::none);
});
});
});