You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/06/13 04:54:33 UTC
[servicecomb-pack] 01/01: SCB-1317 Set the TxEvent's surrogateId to
be null by default
This is an automated email from the ASF dual-hosted git repository.
ningjiang pushed a commit to branch SCB-1317
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git
commit e340a95744afda90529251e97aa194b73f45f011
Author: Willem Jiang <wi...@gmail.com>
AuthorDate: Thu Jun 13 12:53:58 2019 +0800
SCB-1317 Set the TxEvent's surrogateId to be null by default
---
.../src/main/java/org/apache/servicecomb/pack/alpha/core/TxEvent.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/TxEvent.java b/alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/TxEvent.java
index 9d67259..52c4fc3 100644
--- a/alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/TxEvent.java
+++ b/alpha/alpha-core/src/main/java/org/apache/servicecomb/pack/alpha/core/TxEvent.java
@@ -95,7 +95,7 @@ public class TxEvent {
String retryMethod,
int retries,
byte[] payloads) {
- this(-1L, serviceName, instanceId, new Date(), globalTxId, localTxId, parentTxId, type, compensationMethod, timeout,
+ this(null, serviceName, instanceId, new Date(), globalTxId, localTxId, parentTxId, type, compensationMethod, timeout,
retryMethod, retries, payloads);
}
@@ -112,7 +112,7 @@ public class TxEvent {
String retryMethod,
int retries,
byte[] payloads) {
- this(-1L, serviceName, instanceId, creationTime, globalTxId, localTxId, parentTxId, type, compensationMethod,
+ this(null, serviceName, instanceId, creationTime, globalTxId, localTxId, parentTxId, type, compensationMethod,
timeout, retryMethod, retries, payloads);
}