summaryrefslogtreecommitdiff
path: root/src/mongo/s/transaction_router.h
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2019-03-12 16:59:13 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2019-03-13 19:10:21 -0400
commit41eac7940607f4750f078d89962240bc88fa1359 (patch)
tree0ac8894863da0163b49a3e6db0950d8369a1b092 /src/mongo/s/transaction_router.h
parentcd44c20c13d2452c78d1131fdedebd3107ecffea (diff)
downloadmongo-41eac7940607f4750f078d89962240bc88fa1359.tar.gz
SERVER-39877 Clean up transaction_router_test.cpp and transaction_router.cpp
Diffstat (limited to 'src/mongo/s/transaction_router.h')
-rw-r--r--src/mongo/s/transaction_router.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/transaction_router.h b/src/mongo/s/transaction_router.h
index eb7f7c48874..ce349fe40e2 100644
--- a/src/mongo/s/transaction_router.h
+++ b/src/mongo/s/transaction_router.h
@@ -234,8 +234,8 @@ public:
* Commits the transaction. For transactions with multiple participants, this will initiate
* the two phase commit procedure.
*/
- Shard::CommandResponse commitTransaction(
- OperationContext* opCtx, const boost::optional<TxnRecoveryToken>& recoveryToken);
+ BSONObj commitTransaction(OperationContext* opCtx,
+ const boost::optional<TxnRecoveryToken>& recoveryToken);
/**
* Sends abort to all participants and returns the responses from all shards.
@@ -281,15 +281,15 @@ private:
/**
* Run basic commit for transactions that touched a single shard.
*/
- Shard::CommandResponse _commitSingleShardTransaction(OperationContext* opCtx);
+ BSONObj _commitSingleShardTransaction(OperationContext* opCtx);
- Shard::CommandResponse _commitWithRecoveryToken(OperationContext* opCtx,
- const TxnRecoveryToken& recoveryToken);
+ BSONObj _commitWithRecoveryToken(OperationContext* opCtx,
+ const TxnRecoveryToken& recoveryToken);
/**
* Run two phase commit for transactions that touched multiple shards.
*/
- Shard::CommandResponse _commitMultiShardTransaction(OperationContext* opCtx);
+ BSONObj _commitMultiShardTransaction(OperationContext* opCtx);
/**
* Sets the given logical time as the atClusterTime for the transaction to be the greater of the