Skip to content

Commit

Permalink
executor: sync up some default config of BR SQL to CLI
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <dawn_catcher@126.com>
  • Loading branch information
BornChanger committed Apr 13, 2023
1 parent f78e198 commit 602203c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions executor/brie.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ func (b *executorBuilder) buildBRIE(s *ast.BRIEStmt, schema *expression.Schema)
Checksum: true,
SendCreds: true,
LogProgress: true,

CipherInfo: backuppb.CipherInfo{
CipherType: encryptionpb.EncryptionMethod_PLAINTEXT,
},
Expand Down Expand Up @@ -305,6 +306,9 @@ func (b *executorBuilder) buildBRIE(s *ast.BRIEStmt, schema *expression.Schema)
switch s.Kind {
case ast.BRIEKindBackup:
e.backupCfg = &task.BackupConfig{Config: cfg}
// Set some default flags
e.backupCfg.UseCheckpoint = true
e.backupCfg.IgnoreStats = true

for _, opt := range s.Options {
switch opt.Tp {
Expand Down

0 comments on commit 602203c

Please sign in to comment.