From 0ed9472dc8c2f85e957052f01336b1247c7a6e75 Mon Sep 17 00:00:00 2001 From: Judah Schvimer Date: Tue, 7 Aug 2018 13:42:19 -0400 Subject: SERVER-35798 preallocate prepare timestamp --- src/mongo/db/op_observer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/op_observer.h') diff --git a/src/mongo/db/op_observer.h b/src/mongo/db/op_observer.h index f2d3c766045..ebc0590bad0 100644 --- a/src/mongo/db/op_observer.h +++ b/src/mongo/db/op_observer.h @@ -269,8 +269,10 @@ public: /** * The onTransactionPrepare method is called when an atomic transaction is prepared. It must be * called when a transaction is active. + * + * The 'prepareOpTime' is passed in to be used as the OpTime of the oplog entry. */ - virtual void onTransactionPrepare(OperationContext* opCtx) = 0; + virtual void onTransactionPrepare(OperationContext* opCtx, const OplogSlot& prepareOpTime) = 0; /** * The onTransactionAbort method is called when an atomic transaction aborts, before the -- cgit v1.2.1