diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2018-10-22 13:54:48 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2018-10-22 16:17:05 -0400 |
commit | 7a1cf7b8cc5751cd19ced4186ab575b8827d22dd (patch) | |
tree | 5680afebeb7cbaa0cdb8c04cb92ed34c69b96c0b /src/mongo/s/transaction_router.h | |
parent | 232ed3c7452f1806bc7b7ab8a73b8732ead77695 (diff) | |
download | mongo-7a1cf7b8cc5751cd19ced4186ab575b8827d22dd.tar.gz |
SERVER-37703 TransactionRouter::commitTransaction does not need to return the coordinator's response to the caller
Diffstat (limited to 'src/mongo/s/transaction_router.h')
-rw-r--r-- | src/mongo/s/transaction_router.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/s/transaction_router.h b/src/mongo/s/transaction_router.h index a7dc443ff85..fad2f10efc9 100644 --- a/src/mongo/s/transaction_router.h +++ b/src/mongo/s/transaction_router.h @@ -39,7 +39,6 @@ #include "mongo/db/operation_context.h" #include "mongo/db/repl/read_concern_args.h" #include "mongo/s/async_requests_sender.h" -#include "mongo/s/client/shard.h" #include "mongo/s/shard_id.h" #include "mongo/util/string_map.h" @@ -231,7 +230,7 @@ public: * Commits the transaction. For transactions with multiple participants, this will initiate * the two phase commit procedure. */ - Shard::CommandResponse commitTransaction(OperationContext* opCtx); + void commitTransaction(OperationContext* opCtx); /** * Sends abort to all participants and returns the responses from all shards. @@ -259,12 +258,12 @@ private: /** * Run basic commit for transactions that touched a single shard. */ - Shard::CommandResponse _commitSingleShardTransaction(OperationContext* opCtx); + void _commitSingleShardTransaction(OperationContext* opCtx); /** * Run two phase commit for transactions that touched multiple shards. */ - Shard::CommandResponse _commitMultiShardTransaction(OperationContext* opCtx); + void _commitMultiShardTransaction(OperationContext* opCtx); /** * Returns true if the current transaction can retry on a stale version error from a contacted |