diff options
author | Jason Chan <jason.chan@10gen.com> | 2019-03-11 18:29:48 -0400 |
---|---|---|
committer | Jason Chan <jason.chan@10gen.com> | 2019-03-11 18:31:00 -0400 |
commit | 14d7304ebc90df88abfacc12e2b22312c600e5a5 (patch) | |
tree | ab8be69ba882cdf3452a30177841a0ec299d0e0d /src/mongo/db/op_observer.h | |
parent | 9ad8d6335f83fc14cb98a27533588e9503e8e7a5 (diff) | |
download | mongo-14d7304ebc90df88abfacc12e2b22312c600e5a5.tar.gz |
SERVER-39441 Write the new 'prepareTransaction' command on primary
Diffstat (limited to 'src/mongo/db/op_observer.h')
-rw-r--r-- | src/mongo/db/op_observer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/op_observer.h b/src/mongo/db/op_observer.h index a6664937df6..dadbe435cc5 100644 --- a/src/mongo/db/op_observer.h +++ b/src/mongo/db/op_observer.h @@ -309,12 +309,13 @@ 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. + * 'reservedSlots' is a list of oplog slots reserved for the oplog entries in a transaction. The + * last reserved slot represents the prepareOpTime used for the prepare oplog entry. * * The 'statements' are the list of CRUD operations to be applied in this transaction. */ virtual void onTransactionPrepare(OperationContext* opCtx, - const OplogSlot& prepareOpTime, + const std::vector<OplogSlot>& reservedSlots, std::vector<repl::ReplOperation>& statements) = 0; /** |