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 seanlook committed Nov 25, 2024
1 parent 78a3169 commit 6676a45
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,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 6676a45

Please sign in to comment.