diff --git a/dbm-services/redis/redis-dts/util/util.go b/dbm-services/redis/redis-dts/util/util.go index 97433db100..9335dfbc18 100644 --- a/dbm-services/redis/redis-dts/util/util.go +++ b/dbm-services/redis/redis-dts/util/util.go @@ -213,7 +213,6 @@ func LookupDbDNSIPs(addr01 string) (addrs []string, err error) { } ipPart := list01[0] portPart := list01[1] - // TODO 这个地方会卡16分钟,后面需要想一下怎么更好的区优化 if IsDbDNS(ipPart) { uniqMap := make(map[string]bool) var idx int diff --git a/dbm-ui/backend/db_services/redis/redis_dts/models/tb_tendis_dts_task.py b/dbm-ui/backend/db_services/redis/redis_dts/models/tb_tendis_dts_task.py index b65b34120c..e467ffc25b 100644 --- a/dbm-ui/backend/db_services/redis/redis_dts/models/tb_tendis_dts_task.py +++ b/dbm-ui/backend/db_services/redis/redis_dts/models/tb_tendis_dts_task.py @@ -55,12 +55,8 @@ class TbTendisDtsTask(models.Model): dst_password = models.CharField(max_length=128, default="", verbose_name=_("目的密码base64值")) # task类型,当前迁移任务到哪个阶段,包含tendis_backup, backupfile_fetch,tendisdump,sql_impoter,make_sync等 task_type = models.CharField(max_length=128, default="", verbose_name=_("task类型")) - tendisbackup_file = models.CharField( - null=True, blank=True, max_length=512, default="", verbose_name=_("tendisssd slave上bakup文件位置") - ) - fetch_file = models.CharField( - null=True, blank=True, default="", max_length=512, verbose_name=_("backup文件拉取到dts_server本地位置") - ) + tendisbackup_file = models.CharField(max_length=512, default="", verbose_name=_("tendisssd slave上bakup文件位置")) + fetch_file = models.CharField(default="", max_length=512, verbose_name=_("backup文件拉取到dts_server本地位置")) sqlfile_dir = models.CharField(default="", max_length=512, verbose_name=_("tendisdumper得到的sql文件夹")) syncer_port = models.IntegerField(default=0, verbose_name=_("redis-sync端口")) syncer_pid = models.IntegerField(default=0, verbose_name=_("sync的进程id"))