summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_api.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2022-02-23 19:46:07 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-23 20:51:52 +0000
commit60f8a0134bd837770ee75f85b2f144226529f4f3 (patch)
treeb3cd019234a0f638384bd369074424939f385b73 /src/mongo/db/transaction_api.h
parent9adbcce9f18b9a40cd3225d4bc1f06c4894eca67 (diff)
downloadmongo-60f8a0134bd837770ee75f85b2f144226529f4f3.tar.gz
SERVER-63875 Move TransactionWithRetries executor futures into Transaction
Diffstat (limited to 'src/mongo/db/transaction_api.h')
-rw-r--r--src/mongo/db/transaction_api.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/transaction_api.h b/src/mongo/db/transaction_api.h
index 155c711d8d3..f2fcbc3f349 100644
--- a/src/mongo/db/transaction_api.h
+++ b/src/mongo/db/transaction_api.h
@@ -118,8 +118,7 @@ public:
* Main constructor that constructs an internal transaction with the default options.
*/
TransactionWithRetries(OperationContext* opCtx, ExecutorPtr executor)
- : _executor(executor),
- _internalTxn(std::make_shared<details::Transaction>(opCtx, executor)) {}
+ : _internalTxn(std::make_shared<details::Transaction>(opCtx, executor)) {}
/**
* Alternate constructor that accepts a custom transaction client.
@@ -127,8 +126,7 @@ public:
TransactionWithRetries(OperationContext* opCtx,
ExecutorPtr executor,
std::unique_ptr<TransactionClient> txnClient)
- : _executor(executor),
- _internalTxn(
+ : _internalTxn(
std::make_shared<details::Transaction>(opCtx, executor, std::move(txnClient))) {}
/**
@@ -160,7 +158,6 @@ private:
*/
void _bestEffortAbort(OperationContext* opCtx);
- ExecutorPtr _executor;
std::shared_ptr<details::Transaction> _internalTxn;
};