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_registry.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_registry.h')
-rw-r--r-- | src/mongo/db/op_observer_registry.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mongo/db/op_observer_registry.h b/src/mongo/db/op_observer_registry.h index e3cd4b642d7..5e4a69996ac 100644 --- a/src/mongo/db/op_observer_registry.h +++ b/src/mongo/db/op_observer_registry.h @@ -261,16 +261,19 @@ public: void onTransactionCommit(OperationContext* opCtx, boost::optional<OplogSlot> commitOplogEntryOpTime, - boost::optional<Timestamp> commitTimestamp) override { + boost::optional<Timestamp> commitTimestamp, + std::vector<repl::ReplOperation>& statements) override { ReservedTimes times{opCtx}; for (auto& o : _observers) - o->onTransactionCommit(opCtx, commitOplogEntryOpTime, commitTimestamp); + o->onTransactionCommit(opCtx, commitOplogEntryOpTime, commitTimestamp, statements); } - void onTransactionPrepare(OperationContext* opCtx, const OplogSlot& prepareOpTime) override { + void onTransactionPrepare(OperationContext* opCtx, + const OplogSlot& prepareOpTime, + std::vector<repl::ReplOperation>& statements) override { ReservedTimes times{opCtx}; for (auto& observer : _observers) { - observer->onTransactionPrepare(opCtx, prepareOpTime); + observer->onTransactionPrepare(opCtx, prepareOpTime, statements); } } |