From 0529b1b493e46aae71bbe34cbe24515a2eb1b47c Mon Sep 17 00:00:00 2001 From: 3pointer Date: Fri, 24 Jul 2020 17:55:06 +0800 Subject: [PATCH] brie: set default config for backup and restore (#18774) --- executor/brie.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/executor/brie.go b/executor/brie.go index 701803daf75d0..0094a0bdca66f 100644 --- a/executor/brie.go +++ b/executor/brie.go @@ -250,6 +250,7 @@ func (b *executorBuilder) buildBRIE(s *ast.BRIEStmt, schema *expression.Schema) switch s.Kind { case ast.BRIEKindBackup: e.backupCfg = &task.BackupConfig{Config: cfg} + // TODO adapt new backup config in br. e.backupCfg.GCTTL = backup.DefaultBRGCSafePointTTL for _, opt := range s.Options { @@ -279,6 +280,10 @@ func (b *executorBuilder) buildBRIE(s *ast.BRIEStmt, schema *expression.Schema) case ast.BRIEKindRestore: e.restoreCfg = &task.RestoreConfig{Config: cfg} + // TODO adapt new restore config in br. now give these with default value + e.restoreCfg.SwitchModeInterval = backup.DefaultBRGCSafePointTTL + e.restoreCfg.CheckRequirements = false + e.restoreCfg.RemoveTiFlash = true for _, opt := range s.Options { switch opt.Tp { case ast.BRIEOptionOnline: