From 40e378870aebf2d5dbf98a7023935c4f35d15272 Mon Sep 17 00:00:00 2001 From: zhanggaoming Date: Tue, 22 Nov 2022 12:02:36 +0800 Subject: [PATCH] br: modify newCollationEnabled according to the config of the cluster Signed-off-by: zhanggaoming --- br/pkg/restore/client.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/br/pkg/restore/client.go b/br/pkg/restore/client.go index 6269c029df011..e5bd63815b60a 100644 --- a/br/pkg/restore/client.go +++ b/br/pkg/restore/client.go @@ -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))