Skip to content

Commit c16a141

Browse files
删除注释
1 parent e9c5f72 commit c16a141

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

dbm-ui/backend/ticket/builders/mysql/mysql_migrate_cluster.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ def validate(self, attrs):
6363
super().validated_cluster_type(attrs, ClusterType.TenDBHA)
6464

6565
# 校验集群存在最近一次全备
66-
# 暂时注释
67-
# super().validated_cluster_latest_backup(cluster_ids, attrs["backup_source"])
66+
super().validated_cluster_latest_backup(cluster_ids, attrs["backup_source"])
6867

6968
if attrs["ip_source"] == IpSource.RESOURCE_POOL:
7069
return attrs

dbm-ui/backend/ticket/builders/mysql/mysql_migrate_upgrade.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ def validate(self, attrs):
7171

7272
# 校验集群最近一次备份记录是逻辑备份
7373
cluster_ids = fetch_cluster_ids(attrs)
74-
# 暂时注释
75-
# super().validated_cluster_latest_backup(cluster_ids, attrs["backup_source"], MySQLBackupTypeEnum.LOGICAL)
74+
super().validated_cluster_latest_backup(cluster_ids, attrs["backup_source"], MySQLBackupTypeEnum.LOGICAL)
7675

7776
if attrs["ip_source"] == IpSource.RESOURCE_POOL:
7877
return attrs

dbm-ui/backend/ticket/builders/mysql/mysql_restore_slave.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,9 @@ def validate(self, attrs):
6767
)
6868

6969
# 校验集群存在最近一次全备
70-
# 暂时注释
71-
# super(MysqlRestoreSlaveDetailSerializer, self).validated_cluster_latest_backup(
72-
# cluster_ids, attrs["backup_source"]
73-
# )
70+
super(MysqlRestoreSlaveDetailSerializer, self).validated_cluster_latest_backup(
71+
cluster_ids, attrs["backup_source"]
72+
)
7473

7574
return attrs
7675

0 commit comments

Comments
 (0)