diff --git a/server/config/config.go b/server/config/config.go index 0b80cbebbfd8..dd00a5b85903 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -252,7 +252,8 @@ const ( minCheckRegionSplitInterval = 1 * time.Millisecond maxCheckRegionSplitInterval = 100 * time.Millisecond - defaultEnableSchedulingFallback = true + defaultEnableSchedulingFallback = true + defaultEnableTSODynamicSwitching = true ) // Special keys for Labels @@ -862,6 +863,9 @@ func (c *MicroServiceConfig) adjust(meta *configutil.ConfigMetaData) { if !meta.IsDefined("enable-scheduling-fallback") { c.EnableSchedulingFallback = defaultEnableSchedulingFallback } + if !meta.IsDefined("enable-tso-dynamic-switching") { + c.EnableTSODynamicSwitching = defaultEnableTSODynamicSwitching + } } // Clone returns a copy of micro service config.