diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2022-08-08 20:06:50 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-08 21:18:19 +0000 |
commit | 854ad214da5d09bd15719747c3eedfba751b43b5 (patch) | |
tree | 041257ef130c1df66b518baade5823c7fd4601f0 /src/mongo/db/storage | |
parent | eda2f5d5d94ef0e7ec8016e5b9cad00d746f1787 (diff) | |
download | mongo-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.cpp | 3 |
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); |