You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2021/12/22 11:55:28 UTC

[shardingsphere] branch master updated: improve style (#14235)

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

panjuan 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 cbbe12b  improve style (#14235)
cbbe12b is described below

commit cbbe12b402bbc960c2f6709a8d953b5447912625
Author: roodkcab <ch...@gmail.com>
AuthorDate: Wed Dec 22 19:53:09 2021 +0800

    improve style (#14235)
---
 docs/document/content/features/transaction/use-norms/xa.cn.md | 2 ++
 docs/document/content/features/transaction/use-norms/xa.en.md | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/docs/document/content/features/transaction/use-norms/xa.cn.md b/docs/document/content/features/transaction/use-norms/xa.cn.md
index a3ab055..7c6f822 100644
--- a/docs/document/content/features/transaction/use-norms/xa.cn.md
+++ b/docs/document/content/features/transaction/use-norms/xa.cn.md
@@ -18,6 +18,7 @@ weight = 2
 * 通过 XA START 可以手动开启 XA 事务,注意该事务完全由用户管理,ShardingSphere 只负责将语句转发至后端数据库;
 * 服务宕机后,需要通过 XA RECOVER 获取未提交或回滚的事务,也可以在 COMMIT 时使用 ONE PHASE 跳过 PERPARE。
 
+```sql
 MySQL [(none)]> use test1                                                                               │MySQL [(none)]> use test2
 Reading table information for completion of table and column names                                      │Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A                                          │You can turn off this feature to get a quicker startup with -A
@@ -110,3 +111,4 @@ Query OK, 0 rows affected (0.029 sec)
 
 MySQL [test1]> XA RECOVER;
 Empty set (0.011 sec)
+```
\ No newline at end of file
diff --git a/docs/document/content/features/transaction/use-norms/xa.en.md b/docs/document/content/features/transaction/use-norms/xa.en.md
index 17a0a20..753f369 100644
--- a/docs/document/content/features/transaction/use-norms/xa.en.md
+++ b/docs/document/content/features/transaction/use-norms/xa.en.md
@@ -19,6 +19,7 @@ weight = 2
 * When using XA START to open a XA Transaction, ShardingSphere will pass it to backend database directly, you have to manage this transaction by yourself;
 * When recover from a crush, you have to call XA RECOVER to check unfinished transaction, and choose to commit or rollback using xid. Or you can use ONE PHASE commit without PREPARE.
 
+```sql
 MySQL [(none)]> use test1                                                                               │MySQL [(none)]> use test2
 Reading table information for completion of table and column names                                      │Reading table information for completion of table and column names
 You can turn off this feature to get a quicker startup with -A                                          │You can turn off this feature to get a quicker startup with -A
@@ -111,3 +112,4 @@ Query OK, 0 rows affected (0.029 sec)
 
 MySQL [test1]> XA RECOVER;
 Empty set (0.011 sec)
+```
\ No newline at end of file