diff options
author | Jason Chan <jason.chan@10gen.com> | 2019-05-14 13:04:26 -0400 |
---|---|---|
committer | Jason Chan <jason.chan@10gen.com> | 2019-05-14 13:08:08 -0400 |
commit | 02b4ea3a929731cb34a3eeb3190051da42e1f2d3 (patch) | |
tree | d22045418146babb183745717ff8d6be4e766c37 /src/mongo/db/transaction_participant.h | |
parent | 4ac5a397e19dfe0a731c39b27a340dbfd38a8346 (diff) | |
download | mongo-02b4ea3a929731cb34a3eeb3190051da42e1f2d3.tar.gz |
SERVER-39438 Write "abortTransaction" oplog entry when aborting unprepared transactions with replicated operations
Diffstat (limited to 'src/mongo/db/transaction_participant.h')
-rw-r--r-- | src/mongo/db/transaction_participant.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/transaction_participant.h b/src/mongo/db/transaction_participant.h index a76241912fd..4925c38b825 100644 --- a/src/mongo/db/transaction_participant.h +++ b/src/mongo/db/transaction_participant.h @@ -727,8 +727,10 @@ public: // Abort the transaction if it's in one of the expected states and clean up the transaction // states associated with the opCtx. + // If 'writeOplog' is true, logs an 'abortTransaction' oplog entry if writes are replicated. void _abortActiveTransaction(OperationContext* opCtx, - TransactionState::StateSet expectedStates); + TransactionState::StateSet expectedStates, + bool writeOplog); // Releases stashed transaction resources to abort the transaction on the session. void _abortTransactionOnSession(OperationContext* opCtx); |