diff options
author | Mindaugas Malinauskas <mindaugas.malinauskas@mongodb.com> | 2022-02-16 10:57:21 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-23 11:27:17 +0000 |
commit | f65692d2b92ecaf505dc73f82d5490f9528f5fe2 (patch) | |
tree | 7b460734da63f0e44af88440c78ae0980d2cf4c2 /src/mongo/idl | |
parent | c3fee8287bf070e1fa6309513a4e6d8100c440ee (diff) | |
download | mongo-f65692d2b92ecaf505dc73f82d5490f9528f5fe2.tar.gz |
SERVER-62785 Write change stream pre-images in the main storage engine transaction for prepared transactions
Diffstat (limited to 'src/mongo/idl')
-rw-r--r-- | src/mongo/idl/cluster_server_parameter_op_observer.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/mongo/idl/cluster_server_parameter_op_observer.h b/src/mongo/idl/cluster_server_parameter_op_observer.h index 4519de522a7..932e99f44a3 100644 --- a/src/mongo/idl/cluster_server_parameter_op_observer.h +++ b/src/mongo/idl/cluster_server_parameter_op_observer.h @@ -201,10 +201,22 @@ public: Timestamp commitTimestamp, const std::vector<repl::ReplOperation>& statements) noexcept final {} - void onTransactionPrepare(OperationContext* opCtx, - const std::vector<OplogSlot>& reservedSlots, - std::vector<repl::ReplOperation>* statements, - size_t numberOfPrePostImagesToWrite) final {} + std::unique_ptr<ApplyOpsOplogSlotAndOperationAssignment> preTransactionPrepare( + OperationContext* opCtx, + const std::vector<OplogSlot>& reservedSlots, + size_t numberOfPrePostImagesToWrite, + Date_t wallClockTime, + std::vector<repl::ReplOperation>* statements) final { + return nullptr; + } + + void onTransactionPrepare( + OperationContext* opCtx, + const std::vector<OplogSlot>& reservedSlots, + std::vector<repl::ReplOperation>* statements, + const ApplyOpsOplogSlotAndOperationAssignment* applyOpsOperationAssignment, + size_t numberOfPrePostImagesToWrite, + Date_t wallClockTime) final {} void onTransactionAbort(OperationContext* opCtx, boost::optional<OplogSlot> abortOplogEntryOpTime) final {} |