diff options
author | Josef Ahmad <josef.ahmad@mongodb.com> | 2022-03-24 16:07:41 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-24 18:58:47 +0000 |
commit | 16227df086c840630ded6e4304fd25c04b7fac6b (patch) | |
tree | d5220bc4c091773de111ed8bf97178fa857640d9 /src/mongo/db/storage/write_unit_of_work.h | |
parent | 7671b3cca3c5fb1024b8affcafe92c9dfed37280 (diff) | |
download | mongo-16227df086c840630ded6e4304fd25c04b7fac6b.tar.gz |
SERVER-63047 Make delete batches fully transactional
Diffstat (limited to 'src/mongo/db/storage/write_unit_of_work.h')
-rw-r--r-- | src/mongo/db/storage/write_unit_of_work.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/storage/write_unit_of_work.h b/src/mongo/db/storage/write_unit_of_work.h index 3d8130c290e..3bb8e461563 100644 --- a/src/mongo/db/storage/write_unit_of_work.h +++ b/src/mongo/db/storage/write_unit_of_work.h @@ -59,7 +59,7 @@ public: kFailedUnitOfWork // in a unit of work that has failed and must be aborted }; - WriteUnitOfWork(OperationContext* opCtx); + WriteUnitOfWork(OperationContext* opCtx, bool groupOplogEntries = false); ~WriteUnitOfWork(); @@ -101,6 +101,7 @@ private: OperationContext* _opCtx; bool _toplevel; + bool _groupOplogEntries; bool _committed = false; bool _prepared = false; |