From e98cd78d1747b88f8fdecdcee8f1a097d4c78e87 Mon Sep 17 00:00:00 2001 From: uriwang Date: Mon, 18 Nov 2024 16:03:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(mysql):=20=E4=BF=AE=E6=94=B9rocksdb?= =?UTF-8?q?=E5=A4=87=E4=BB=BD=E7=9A=84=E4=BD=8D=E7=82=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E6=BB=A1=E8=B6=B3dbm=E7=9A=84=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E8=A6=81=E6=B1=82=20#8002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pkg/src/backupexe/dumper_physical_rocksdb.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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 }