diff --git a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_physical_rocksdb.go b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_physical_rocksdb.go index 1c58bb0f05..6375606861 100644 --- a/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_physical_rocksdb.go +++ b/dbm-services/mysql/db-tools/mysql-dbbackup/pkg/src/backupexe/dumper_physical_rocksdb.go @@ -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 }