summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2022-08-08 20:06:50 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-08 21:18:19 +0000
commit854ad214da5d09bd15719747c3eedfba751b43b5 (patch)
tree041257ef130c1df66b518baade5823c7fd4601f0 /src/mongo/db/storage
parenteda2f5d5d94ef0e7ec8016e5b9cad00d746f1787 (diff)
downloadmongo-854ad214da5d09bd15719747c3eedfba751b43b5.tar.gz
SERVER-68646 Allow _dropCollectionsNoTimestamp() to do untimestamped writes
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r--src/mongo/db/storage/storage_engine_impl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_engine_impl.cpp b/src/mongo/db/storage/storage_engine_impl.cpp
index bdd45235661..24ac37a2f3b 100644
--- a/src/mongo/db/storage/storage_engine_impl.cpp
+++ b/src/mongo/db/storage/storage_engine_impl.cpp
@@ -869,6 +869,9 @@ Status StorageEngineImpl::_dropCollectionsNoTimestamp(OperationContext* opCtx,
}
});
+ // This code makes untimestamped writes to the _mdb_catalog.
+ opCtx->recoveryUnit()->allowUntimestampedWrite();
+
Status firstError = Status::OK();
WriteUnitOfWork untimestampedDropWuow(opCtx);
auto collectionCatalog = CollectionCatalog::get(opCtx);