diff --git a/server/config/config.go b/server/config/config.go index d4139f4fe106..361265720992 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -252,8 +252,7 @@ const ( minCheckRegionSplitInterval = 1 * time.Millisecond maxCheckRegionSplitInterval = 100 * time.Millisecond - defaultEnableSchedulingFallback = true - defaultEnableTSODynamicSwitching = false + defaultEnableSchedulingFallback = true ) // Special keys for Labels @@ -855,17 +854,13 @@ func (c *DRAutoSyncReplicationConfig) adjust(meta *configutil.ConfigMetaData) { // MicroServiceConfig is the configuration for micro service. type MicroServiceConfig struct { - EnableSchedulingFallback bool `toml:"enable-scheduling-fallback" json:"enable-scheduling-fallback,string"` - EnableTSODynamicSwitching bool `toml:"enable-tso-dynamic-switching" json:"enable-tso-dynamic-switching,string"` + EnableSchedulingFallback bool `toml:"enable-scheduling-fallback" json:"enable-scheduling-fallback,string"` } func (c *MicroServiceConfig) adjust(meta *configutil.ConfigMetaData) { if !meta.IsDefined("enable-scheduling-fallback") { c.EnableSchedulingFallback = defaultEnableSchedulingFallback } - if !meta.IsDefined("enable-dynamic-tso") { - c.EnableTSODynamicSwitching = defaultEnableTSODynamicSwitching - } } // Clone returns a copy of micro service config. @@ -880,8 +875,9 @@ func (c *MicroServiceConfig) IsSchedulingFallbackEnabled() bool { } // IsTSODynamicSwitchingEnabled returns whether to enable TSO dynamic switching. -func (c *MicroServiceConfig) IsTSODynamicSwitchingEnabled() bool { - return c.EnableTSODynamicSwitching +func (*MicroServiceConfig) IsTSODynamicSwitchingEnabled() bool { + // TODO: make it configurable + return false } // KeyspaceConfig is the configuration for keyspace management.