Skip to content

Commit

Permalink
feat(mysql): 修改rocksdb备份的位点文件,满足dbm的规范要求 #8002
Browse files Browse the repository at this point in the history
  • Loading branch information
ylgeeker authored and zhangzhw8 committed Nov 19, 2024
1 parent 5d232b4 commit e98cd78
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,11 @@ func (p *PhysicalRocksdbDumper) buildArgs() []string {
fmt.Sprintf("--port=%d", p.cfg.Public.MysqlPort),
fmt.Sprintf("--checkpoint_dir=%s", p.checkpointDir),
fmt.Sprintf("--backup_dir=%s", targetPath),
"--slave_info",
"--master_info",
"--stream=disabled",
}

if strings.ToLower(p.cfg.Public.MysqlRole) == cst.RoleSlave {
args = append(args, "--slave_info")
}

if strings.ToLower(p.cfg.Public.MysqlRole) == cst.RoleMaster {
args = append(args, "--master_info")
}

return args
}

Expand Down

0 comments on commit e98cd78

Please sign in to comment.