You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by se...@apache.org on 2018/01/11 06:56:08 UTC

[incubator-servicecomb-saga] 04/04: SCB-213 remove ended event from map

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

seanyinx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-saga.git

commit 2b62bdb184d6449fe8b53cef4e77a128f4c36c26
Author: Eric Lee <da...@huawei.com>
AuthorDate: Thu Jan 11 12:46:54 2018 +0800

    SCB-213 remove ended event from map
    
    Signed-off-by: Eric Lee <da...@huawei.com>
---
 .../java/org/apache/servicecomb/saga/alpha/core/TxConsistentService.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/TxConsistentService.java b/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/TxConsistentService.java
index f22a885..5bab1d8 100644
--- a/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/TxConsistentService.java
+++ b/alpha/alpha-core/src/main/java/org/apache/servicecomb/saga/alpha/core/TxConsistentService.java
@@ -73,6 +73,7 @@ public class TxConsistentService {
       events.remove(event.localTxId());
       if (events.isEmpty()) {
         markGlobalTxEnd(event);
+        eventsToCompensate.remove(event.globalTxId());
       }
     }
   }

-- 
To stop receiving notification emails like this one, please contact
"commits@servicecomb.apache.org" <co...@servicecomb.apache.org>.