From c4485dec3c2c49622bf1740411e0ea642bbad6b1 Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Sat, 12 Nov 2022 19:50:24 +0800 Subject: [PATCH 1/7] txn_source --- proto/kvrpcpb.proto | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index 03133bdaa..5bfe27494 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -786,6 +786,8 @@ message Context { // The source of the request, will be used as the tag of the metrics reporting. // This field can be set for any requests that require to report metrics with any extra labels. string request_source = 24; + + uint32 txn_source = 25; } // The API version the server and the client is using. From 8260b93f5bd4e4d036f80d30397df293a61ea331 Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Mon, 14 Nov 2022 10:18:03 +0800 Subject: [PATCH 2/7] Update proto/kvrpcpb.proto --- proto/kvrpcpb.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index 5bfe27494..7650d4b12 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -786,7 +786,7 @@ message Context { // The source of the request, will be used as the tag of the metrics reporting. // This field can be set for any requests that require to report metrics with any extra labels. string request_source = 24; - +the source of the current txn uint32 txn_source = 25; } From 05116cce35d21814666df119f5447ed425f418af Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Mon, 14 Nov 2022 10:18:21 +0800 Subject: [PATCH 3/7] Update proto/kvrpcpb.proto --- proto/kvrpcpb.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index 7650d4b12..08a12120d 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -786,7 +786,7 @@ message Context { // The source of the request, will be used as the tag of the metrics reporting. // This field can be set for any requests that require to report metrics with any extra labels. string request_source = 24; -the source of the current txn + the source of the current txn uint32 txn_source = 25; } From 04e36989fc1fd64cb9c52186e48586677d875a3a Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Mon, 14 Nov 2022 10:18:35 +0800 Subject: [PATCH 4/7] Update proto/kvrpcpb.proto --- proto/kvrpcpb.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index 08a12120d..9aed20b85 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -786,7 +786,7 @@ message Context { // The source of the request, will be used as the tag of the metrics reporting. // This field can be set for any requests that require to report metrics with any extra labels. string request_source = 24; - the source of the current txn + // the source of the current txn uint32 txn_source = 25; } From 04f33fe6318873576b26d55b0e2dc1351941de33 Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Mon, 14 Nov 2022 10:18:51 +0800 Subject: [PATCH 5/7] Update proto/kvrpcpb.proto --- proto/kvrpcpb.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index 9aed20b85..206ad8c5f 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -786,7 +786,7 @@ message Context { // The source of the request, will be used as the tag of the metrics reporting. // This field can be set for any requests that require to report metrics with any extra labels. string request_source = 24; - // the source of the current txn + // The source of the current txn uint32 txn_source = 25; } From df58350be515a39ae20e75c1a6cdb04c6d61b407 Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Mon, 14 Nov 2022 10:34:51 +0800 Subject: [PATCH 6/7] Update proto/kvrpcpb.proto --- proto/kvrpcpb.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index 206ad8c5f..ef6c0a86f 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -786,6 +786,7 @@ message Context { // The source of the request, will be used as the tag of the metrics reporting. // This field can be set for any requests that require to report metrics with any extra labels. string request_source = 24; + // The source of the current txn uint32 txn_source = 25; } From 6f3299da0baf38f30f192af5b00d302d2ac8aed0 Mon Sep 17 00:00:00 2001 From: xiongjiwei Date: Mon, 14 Nov 2022 10:41:59 +0800 Subject: [PATCH 7/7] Update proto/kvrpcpb.proto Co-authored-by: tangenta --- proto/kvrpcpb.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/kvrpcpb.proto b/proto/kvrpcpb.proto index ef6c0a86f..fac4b7335 100644 --- a/proto/kvrpcpb.proto +++ b/proto/kvrpcpb.proto @@ -787,7 +787,7 @@ message Context { // This field can be set for any requests that require to report metrics with any extra labels. string request_source = 24; - // The source of the current txn + // The source of the current transaction. uint32 txn_source = 25; }