diff options
author | Blake Oler <blake.oler@mongodb.com> | 2019-01-17 14:31:00 -0500 |
---|---|---|
committer | Blake Oler <blake.oler@mongodb.com> | 2019-02-01 14:16:52 -0500 |
commit | b8bfe9ff391ebeb10a5c2fb86979d854d17d0fd5 (patch) | |
tree | 86f50503bc3e5e7c51ff2cb0ed42338ad73c6e39 /src/mongo/db/op_observer_impl.h | |
parent | 8387824b3ac937b0489fcb94c590cc663b47348c (diff) | |
download | mongo-b8bfe9ff391ebeb10a5c2fb86979d854d17d0fd5.tar.gz |
SERVER-39017 Allow prepared transaction statements to persist in-memory until commit
Diffstat (limited to 'src/mongo/db/op_observer_impl.h')
-rw-r--r-- | src/mongo/db/op_observer_impl.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/op_observer_impl.h b/src/mongo/db/op_observer_impl.h index 86ced3d6f81..2d09eaa710b 100644 --- a/src/mongo/db/op_observer_impl.h +++ b/src/mongo/db/op_observer_impl.h @@ -140,8 +140,11 @@ public: OptionalCollectionUUID uuid); void onTransactionCommit(OperationContext* opCtx, boost::optional<OplogSlot> commitOplogEntryOpTime, - boost::optional<Timestamp> commitTimestamp) final; - void onTransactionPrepare(OperationContext* opCtx, const OplogSlot& prepareOpTime) final; + boost::optional<Timestamp> commitTimestamp, + std::vector<repl::ReplOperation>& statements) final; + void onTransactionPrepare(OperationContext* opCtx, + const OplogSlot& prepareOpTime, + std::vector<repl::ReplOperation>& statments) final; void onTransactionAbort(OperationContext* opCtx, boost::optional<OplogSlot> abortOplogEntryOpTime) final; void onReplicationRollback(OperationContext* opCtx, const RollbackObserverInfo& rbInfo) final; |