Skip to content

Commit

Permalink
increase large transaction preSplitSizeThreashold (tikv#1059)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
coocood authored and zeminzhou committed Feb 28, 2024
1 parent d09d52b commit 72a5771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions txnkv/transaction/2pc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72a5771

Please sign in to comment.