From 7bc446bd2d9941241438df4f886459bb034a6162 Mon Sep 17 00:00:00 2001 From: GMHDBJD <35025882+GMHDBJD@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:34:26 +0800 Subject: [PATCH] ddl: enlarge LoadSchemaDiffVersionGapThreshold (#54288) close pingcap/tidb#54046 --- pkg/domain/domain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/domain/domain.go b/pkg/domain/domain.go index ec05dec98a..b6c11d1e85 100644 --- a/pkg/domain/domain.go +++ b/pkg/domain/domain.go @@ -106,7 +106,7 @@ var ( mdlCheckLookDuration = 50 * time.Millisecond // LoadSchemaDiffVersionGapThreshold is the threshold for version gap to reload domain by loading schema diffs - LoadSchemaDiffVersionGapThreshold int64 = 100 + LoadSchemaDiffVersionGapThreshold int64 = 10000 // NewInstancePlanCache creates a new instance level plan cache, this function is designed to avoid cycle-import. NewInstancePlanCache func(softMemLimit, hardMemLimit int64) sessionctx.InstancePlanCache