From fe6730025a828fd695d4638770162cdfa3b25e22 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Wed, 4 Mar 2020 17:20:53 +0800 Subject: [PATCH] reference/configuration: update note for stmt-count-limit (#2363) Signed-off-by: Shuaipeng Yu --- reference/configuration/tidb-server/configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/configuration/tidb-server/configuration-file.md b/reference/configuration/tidb-server/configuration-file.md index 8807fe6cb730..71941311d385 100644 --- a/reference/configuration/tidb-server/configuration-file.md +++ b/reference/configuration/tidb-server/configuration-file.md @@ -209,7 +209,7 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/ + TiDB 一个事务允许的最大语句条数限制。 + 默认值:5000 -+ 在一个事务中,超过 `stmt-count-limit` 条语句后还没有 rollback 或者 commit,TiDB 将会返回 `statement count 5001 exceeds the transaction limitation, autocommit = false` 错误。 ++ 在一个事务中,超过 `stmt-count-limit` 条语句后还没有 rollback 或者 commit,TiDB 将会返回 `statement count 5001 exceeds the transaction limitation, autocommit = false` 错误。该限制只在可重试的乐观事务中生效,如果使用悲观事务或者关闭了[事务重试](/reference/transactions/transaction-optimistic.md#事务的重试),事务中的语句数将不受此限制。 ### `tcp-keep-alive`