diff options
author | Jack Mulrow <jack.mulrow@mongodb.com> | 2022-02-23 19:46:07 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-23 20:51:52 +0000 |
commit | 60f8a0134bd837770ee75f85b2f144226529f4f3 (patch) | |
tree | b3cd019234a0f638384bd369074424939f385b73 /src/mongo/db/transaction_api.h | |
parent | 9adbcce9f18b9a40cd3225d4bc1f06c4894eca67 (diff) | |
download | mongo-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.h | 7 |
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; }; |