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

menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 680caee  xa transaction type (#9130)
680caee is described below

commit 680caee63ff1ec058bcf2aa47f65496b4c5113de
Author: xiaoyu <549477...@qq.com>
AuthorDate: Fri Jan 22 16:58:41 2021 +0800

    xa transaction type (#9130)
---
 .../context/transaction/GovernanceTransactionContexts.java        | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/shardingsphere-governance/shardingsphere-governance-context/src/main/java/org/apache/shardingsphere/governance/context/transaction/GovernanceTransactionContexts.java
 
b/shardingsphere-governance/shardingsphere-governance-context/src/main/java/org/apache/shardingsphere/governance/context/transaction/GovernanceTransactionContexts.java
index 513fd92..acec630 100644
--- 
a/shardingsphere-governance/shardingsphere-governance-context/src/main/java/org/apache/shardingsphere/governance/context/transaction/GovernanceTransactionContexts.java
+++ 
b/shardingsphere-governance/shardingsphere-governance-context/src/main/java/org/apache/shardingsphere/governance/context/transaction/GovernanceTransactionContexts.java
@@ -32,11 +32,11 @@ public final class GovernanceTransactionContexts implements 
TransactionContexts
     
     private final TransactionContexts contexts;
     
-    private final String transactionManagerType;
+    private final String xaTransactionMangerType;
     
-    public GovernanceTransactionContexts(final TransactionContexts contexts, 
final String transactionManagerType) {
+    public GovernanceTransactionContexts(final TransactionContexts contexts, 
final String xaTransactionMangerType) {
         this.contexts = contexts;
-        this.transactionManagerType = transactionManagerType;
+        this.xaTransactionMangerType = xaTransactionMangerType;
         ShardingSphereEventBus.getInstance().register(this);
     }
     
@@ -68,7 +68,7 @@ public final class GovernanceTransactionContexts implements 
TransactionContexts
             oldEngine.close();
         }
         ShardingTransactionManagerEngine newEngine = new 
ShardingTransactionManagerEngine();
-        newEngine.init(event.getDatabaseType(), event.getDataSources(), 
transactionManagerType);
+        newEngine.init(event.getDatabaseType(), event.getDataSources(), 
xaTransactionMangerType);
         contexts.getEngines().put(event.getSchemaName(), newEngine);
     }
 }

Reply via email to