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:32 UTC

[servicecomb-pack] branch SCB-1317 created (now e340a95)

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch SCB-1317
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git.


      at e340a95  SCB-1317 Set the TxEvent's surrogateId to be null by default

This branch includes the following new commits:

     new e340a95  SCB-1317 Set the TxEvent's surrogateId to be null by default

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[servicecomb-pack] 01/01: SCB-1317 Set the TxEvent's surrogateId to be null by default

Posted by ni...@apache.org.
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);
   }