From 44755fb623a255fcec369307b70fd4b49b7ebb82 Mon Sep 17 00:00:00 2001 From: Shuaipeng Yu Date: Sat, 7 Sep 2019 11:14:41 +0800 Subject: [PATCH] config: disable local latch by default Signed-off-by: Shuaipeng Yu --- config/config.go | 2 +- config/config.toml.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 8aa5add1583a4..60777222a941b 100644 --- a/config/config.go +++ b/config/config.go @@ -324,7 +324,7 @@ var defaultConf = Config{ TreatOldVersionUTF8AsUTF8MB4: true, SplitRegionMaxNum: 1000, TxnLocalLatches: TxnLocalLatches{ - Enabled: true, + Enabled: false, Capacity: 2048000, }, LowerCaseTableNames: 2, diff --git a/config/config.toml.example b/config/config.toml.example index b2016f95d1e29..7a090b9ce2d3a 100644 --- a/config/config.toml.example +++ b/config/config.toml.example @@ -270,7 +270,7 @@ batch-wait-size = 8 [txn-local-latches] # Enable local latches for transactions. Enable it when # there are lots of conflicts between transactions. -enabled = true +enabled = false capacity = 2048000 [binlog]