Skip to content

Commit

Permalink
fix 132
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 24, 2024
1 parent e2c4302 commit 8a03f47
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,20 @@ def non_standby_slaves_upgrade_subflow(
sync_data_sub_pipeline_list = build_data_repl_from_local_backup(
root_id, parent_global_data, relation_cluster_ids, cluster, new_slave_ip, charset
)
sub_pipeline.add_sub_pipeline(sub_flows=sync_data_sub_pipeline_list)
sub_pipeline.add_sub_pipeline(sub_flow=sync_data_sub_pipeline_list)
elif backup_source == MySQLBackupSource.REMOTE:
# 使用远程备份来做迁移
sync_data_sub_pipeline_list = build_sync_data_sub_pipelines(
root_id, parent_global_data, relation_cluster_ids, cluster, new_slave_ip
)
sub_pipeline.add_sub_pipeline(sub_flows=sync_data_sub_pipeline_list)
sub_pipeline.add_sub_pipeline(sub_flow=sync_data_sub_pipeline_list)

# 切换到新从节点
if not add_slave_only:
switch_sub_pipeline_list = build_switch_sub_pipelines(
root_id, parent_global_data, relation_cluster_ids, old_slave_ip, new_slave_ip
)
sub_pipeline.add_parallel_sub_pipeline(sub_flows=switch_sub_pipeline_list)
sub_pipeline.add_parallel_sub_pipeline(sub_flow=switch_sub_pipeline_list)

# 卸载旧从节点
uninstall_svr_sub_pipeline = build_uninstall_sub_pipeline(
Expand Down

0 comments on commit 8a03f47

Please sign in to comment.