diff --git a/br/pkg/lightning/config/config.go b/br/pkg/lightning/config/config.go index e1031c760f749..0f3a7a38b1728 100644 --- a/br/pkg/lightning/config/config.go +++ b/br/pkg/lightning/config/config.go @@ -745,6 +745,15 @@ func NewConfig() *Config { Checksum: OpLevelRequired, Analyze: OpLevelOptional, PostProcessAtLast: true, +<<<<<<< HEAD +======= + ChecksumViaSQL: false, + }, + Conflict: Conflict{ + Strategy: "", + Threshold: -1, + MaxRecordRows: -1, +>>>>>>> fe5625ec74f (lightning:set default value of checksum-via-sql to false (#45369)) }, } } diff --git a/br/tests/lightning_add_index/config1.toml b/br/tests/lightning_add_index/config1.toml new file mode 100644 index 0000000000000..b3c4858eeafbe --- /dev/null +++ b/br/tests/lightning_add_index/config1.toml @@ -0,0 +1,6 @@ +[tikv-importer] +backend = 'local' +add-index-by-sql = false + +[post-restore] +checksum-via-sql = true \ No newline at end of file