diff options
author | Matthew Russotto <matthew.russotto@mongodb.com> | 2019-09-30 15:41:45 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-30 15:41:45 +0000 |
commit | 28f301324e1809212f6f15ba641cea77f3c8719f (patch) | |
tree | 2c93c677bc751fb4a3191df90de842fc4591fb3f /src/mongo/db/ops | |
parent | e7a7530bc76d62424afa455dc36495b57b09cd93 (diff) | |
download | mongo-28f301324e1809212f6f15ba641cea77f3c8719f.tar.gz |
SERVER-41457 Unify the different ways the TransactionParticipant offers for aborting a transaction
(cherry picked from commit f661267bf981e3b315d7e942057ab0ac9dc90bef)
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/write_ops_exec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/ops/write_ops_exec.cpp b/src/mongo/db/ops/write_ops_exec.cpp index 2695ef439ce..1ecceb4caa8 100644 --- a/src/mongo/db/ops/write_ops_exec.cpp +++ b/src/mongo/db/ops/write_ops_exec.cpp @@ -253,7 +253,7 @@ bool handleError(OperationContext* opCtx, } // If we are in a transaction, we must fail the whole batch. out->results.emplace_back(ex.toStatus()); - txnParticipant.abortActiveTransaction(opCtx); + txnParticipant.abortTransaction(opCtx); return false; } |