From 72a57718f3047aa43d1af952c3159bc961bf660f Mon Sep 17 00:00:00 2001 From: Evan Zhou Date: Wed, 15 Nov 2023 15:52:03 +0800 Subject: [PATCH] increase large transaction preSplitSizeThreashold (#1059) cloud-storage-engine has larger region size, we don't want to split regions into 32MB size on large transaction write. Signed-off-by: Evan Zhou --- txnkv/transaction/2pc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/txnkv/transaction/2pc.go b/txnkv/transaction/2pc.go index b7471f87a..7d5ec2eb2 100644 --- a/txnkv/transaction/2pc.go +++ b/txnkv/transaction/2pc.go @@ -786,8 +786,8 @@ func txnLockTTL(startTime time.Time, txnSize int) uint64 { return lockTTL + uint64(elapsed) } -var preSplitDetectThreshold uint32 = 100000 -var preSplitSizeThreshold uint32 = 32 << 20 +var preSplitDetectThreshold uint32 = 1000000 +var preSplitSizeThreshold uint32 = 512 << 20 // doActionOnMutations groups keys into primary batch and secondary batches, if primary batch exists in the key, // it does action on primary batch first, then on secondary batches. If action is commit, secondary batches