summaryrefslogtreecommitdiff
path: root/src/mongo/s/transaction_router.h
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2018-09-18 16:17:01 -0400
committerRandolph Tan <randolph@10gen.com>2018-09-26 10:23:07 -0400
commit071521f35b79c8e3c280cfade3b621d61243f3bc (patch)
treea78b7da1d6b4a9a35846f71bfe400f851c90605a /src/mongo/s/transaction_router.h
parent625fa16dff719dbf6688af209c5f31913d1e794f (diff)
downloadmongo-071521f35b79c8e3c280cfade3b621d61243f3bc.tar.gz
SERVER-36589 Implement mongos abort logic
Diffstat (limited to 'src/mongo/s/transaction_router.h')
-rw-r--r--src/mongo/s/transaction_router.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/transaction_router.h b/src/mongo/s/transaction_router.h
index f8ae1a2f349..c90e8d1fd33 100644
--- a/src/mongo/s/transaction_router.h
+++ b/src/mongo/s/transaction_router.h
@@ -36,6 +36,7 @@
#include "mongo/db/logical_session_id.h"
#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"
@@ -186,6 +187,11 @@ public:
Shard::CommandResponse commitTransaction(OperationContext* opCtx);
/**
+ * Sends abort to all participants and returns the responses from all shards.
+ */
+ std::vector<AsyncRequestsSender::Response> abortTransaction(OperationContext* opCtx);
+
+ /**
* Extract the runtimne state attached to the operation context. Returns nullptr if none is
* attached.
*/