From cb1bfc7d7df2efba82d9145493e0327e23a8fcea Mon Sep 17 00:00:00 2001 From: yksitu <1297650644@qq.com> Date: Tue, 12 Nov 2024 09:32:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(mysql):=20=E4=BF=AE=E5=A4=8Dsql=E5=8D=95?= =?UTF-8?q?=E6=8D=AE=E5=AF=B9=E5=8D=95=E8=8A=82=E7=82=B9=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98=20#7897?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../flow/utils/mysql/common/random_job_with_ticket_map.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbm-ui/backend/flow/utils/mysql/common/random_job_with_ticket_map.py b/dbm-ui/backend/flow/utils/mysql/common/random_job_with_ticket_map.py index edeb6615b..357381857 100644 --- a/dbm-ui/backend/flow/utils/mysql/common/random_job_with_ticket_map.py +++ b/dbm-ui/backend/flow/utils/mysql/common/random_job_with_ticket_map.py @@ -40,7 +40,9 @@ class RuleDict: # 定义的单据类型对哪些实例角色来添加随机账号 random_job_with_ticket_map = { # mysql 变更SQL执行添加账号规则 - TicketType.MYSQL_IMPORT_SQLFILE: RuleDict(exec_storage_instance_role_list=[InstanceRole.BACKEND_MASTER]), + TicketType.MYSQL_IMPORT_SQLFILE: RuleDict( + exec_storage_instance_role_list=[InstanceRole.BACKEND_MASTER, InstanceRole.ORPHAN] + ), # tendb_cluster集群SQL执行添加账号规则 TicketType.TENDBCLUSTER_IMPORT_SQLFILE: RuleDict(is_tdbctl_primary_add=True), }