Skip to content

Commit

Permalink
ddl: set lightning cron config to real behaviour (#42855)
Browse files Browse the repository at this point in the history
ref #35983
  • Loading branch information
lance6716 authored Apr 7, 2023
1 parent d77243e commit f0427c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ddl/ingest/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ func genConfig(memRoot MemRoot, jobID int64, unique bool) (*Config, error) {
cfg.Security.CAPath = tidbCfg.Security.ClusterSSLCA
cfg.Security.CertPath = tidbCfg.Security.ClusterSSLCert
cfg.Security.KeyPath = tidbCfg.Security.ClusterSSLKey
// in DDL scenario, we don't switch import mode
cfg.Cron.SwitchMode = lightning.Duration{Duration: 0}

c := &Config{
Lightning: cfg,
Expand Down

0 comments on commit f0427c3

Please sign in to comment.