Skip to content

Commit

Permalink
feat(mysql): 修改rocksdb备份的位点文件,满足dbm的规范要求 TencentBlueKing#8002
Browse files Browse the repository at this point in the history
  • Loading branch information
ylgeeker authored and hLinx committed Dec 9, 2024
1 parent 9ce7b89 commit b743301
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 b743301

Please sign in to comment.