summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2018-09-21 15:42:10 -0400
committerJudah Schvimer <judah@mongodb.com>2018-09-21 15:42:41 -0400
commit340e33483d69983c976dff0ed5ab2ff0b036237c (patch)
tree02fa87780c879d854568c42efb2aa4edd417e5c6 /src/mongo/db/op_observer_impl.h
parent680158aaa823b4d980adb4ad4209258408c32253 (diff)
downloadmongo-340e33483d69983c976dff0ed5ab2ff0b036237c.tar.gz
SERVER-35865 SERVER-35816 SERVER-35730 Write commit oplog entry on commit of prepared transaction
Diffstat (limited to 'src/mongo/db/op_observer_impl.h')
-rw-r--r--src/mongo/db/op_observer_impl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/op_observer_impl.h b/src/mongo/db/op_observer_impl.h
index edced9647e5..8d4c4372bd1 100644
--- a/src/mongo/db/op_observer_impl.h
+++ b/src/mongo/db/op_observer_impl.h
@@ -110,7 +110,9 @@ public:
void onEmptyCapped(OperationContext* opCtx,
const NamespaceString& collectionName,
OptionalCollectionUUID uuid);
- void onTransactionCommit(OperationContext* opCtx, bool wasPrepared) final;
+ void onTransactionCommit(OperationContext* opCtx,
+ boost::optional<OplogSlot> commitOplogEntryOpTime,
+ boost::optional<Timestamp> commitTimestamp) final;
void onTransactionPrepare(OperationContext* opCtx, const OplogSlot& prepareOpTime) final;
void onTransactionAbort(OperationContext* opCtx) final;
void onReplicationRollback(OperationContext* opCtx, const RollbackObserverInfo& rbInfo) final;