Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'proto/transaction.proto')
-rw-r--r--proto/transaction.proto16
1 files changed, 16 insertions, 0 deletions
diff --git a/proto/transaction.proto b/proto/transaction.proto
index 1e7f1f5d7..fb11879c4 100644
--- a/proto/transaction.proto
+++ b/proto/transaction.proto
@@ -16,6 +16,13 @@ service RefTransaction {
};
}
+ rpc StopTransaction (StopTransactionRequest) returns (StopTransactionResponse) {
+ option (op_type) = {
+ op: MUTATOR
+ scope_level: REPOSITORY
+ };
+ }
+
}
message VoteTransactionRequest {
@@ -34,7 +41,16 @@ message VoteTransactionResponse {
enum TransactionState {
COMMIT = 0;
ABORT = 1;
+ STOP = 2;
}
TransactionState state = 1;
}
+
+message StopTransactionRequest {
+ Repository repository = 1[(target_repository)=true];
+ // ID of the transaction we're processing
+ uint64 transaction_id = 2;
+}
+
+message StopTransactionResponse {}