Skip to content

Commit

Permalink
reference: update v2.1 auto-retry description (pingcap#2111)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored Feb 21, 2020
1 parent 76ce2e0 commit e6fdc0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ set @@global.tidb_distsql_scan_concurrency = 10

作用域:SESSION | GLOBAL

默认值:on
默认值:off

这个变量用来设置是否禁用显式事务自动重试,设置为 `on` 时,不会自动重试,如果遇到事务冲突需要在应用层重试。
这个变量用来设置是否禁用显式事务自动重试,设置为 `on` 时,不会自动重试,如果遇到事务冲突需要在应用层重试。TiDB v2.1 默认开启自动重试。

如果将该变量的值设为 `off`,TiDB 将会自动重试事务,这样在事务提交时遇到的错误更少。需要注意的是,这样可能会导致数据更新丢失。

Expand Down

0 comments on commit e6fdc0f

Please sign in to comment.