summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@mongodb.com>2019-09-30 15:41:45 +0000
committerevergreen <evergreen@mongodb.com>2019-09-30 15:41:45 +0000
commit28f301324e1809212f6f15ba641cea77f3c8719f (patch)
tree2c93c677bc751fb4a3191df90de842fc4591fb3f /src/mongo/db/ops
parente7a7530bc76d62424afa455dc36495b57b09cd93 (diff)
downloadmongo-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.cpp2
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;
}