Skip to content

Commit

Permalink
br: modify newCollationEnabled according to the config of the cluster
Browse files Browse the repository at this point in the history
Signed-off-by: zhanggaoming <gaoming.zhang@pingcap.com>
  • Loading branch information
MoCuishle28 committed Nov 22, 2022
1 parent d4b0369 commit 40e3788
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions br/pkg/restore/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2683,10 +2683,7 @@ func CheckNewCollationEnable(
// collate.newCollationEnabled is set to 1 when the collate package is initialized,
// so we need to modify this value according to the config of the cluster
// before using the collate package.
enabled := false
if newCollationEnable == "True" {
enabled = true
}
enabled := newCollationEnable == "True"
// modify collate.newCollationEnabled according to the config of the cluster
collate.SetNewCollationEnabledForTest(enabled)
log.Info("set new_collation_enabled", zap.Bool("new_collation_enabled", enabled))
Expand Down

0 comments on commit 40e3788

Please sign in to comment.