From de1ed79aa4f22e9fb4c74e76242270d9fd2d61a4 Mon Sep 17 00:00:00 2001 From: xfan0805 Date: Wed, 11 Dec 2024 14:50:57 +0800 Subject: [PATCH] fix: partition_special_services #8538 --- .../mysql/db-partition/service/check_partition_base_func.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dbm-services/mysql/db-partition/service/check_partition_base_func.go b/dbm-services/mysql/db-partition/service/check_partition_base_func.go index 51af6faabd..3f23433f7a 100644 --- a/dbm-services/mysql/db-partition/service/check_partition_base_func.go +++ b/dbm-services/mysql/db-partition/service/check_partition_base_func.go @@ -151,9 +151,11 @@ func (config *PartitionConfig) GetDbTableInfo(fromCron bool, host Host) (ptlist // (2)兼容web、dnf业务的特殊定制类型,分区字段类型为int,但是系统记录为timestamp,因此无法核对比较,但不影响新增和删除分区。 // (3)兼容minigame业务的特殊定制类型,分区类型为0,但是实际定义与分区类型存在差异,因此无法核对比较,但不影响新增和删除分区。 webCustomization := config.BkBizId == 159 && config.PartitionColumn == "Fcreate_time" + iegamsCustomization := config.BkBizId == 5016839 && config.PartitionColumn == "Fcreate_time" minigameCustomization := config.BkBizId == 121 && config.ImmuteDomain == "gamedb.game-record.minigame.db" dnfCustomization := config.BkBizId == 105 && config.PartitionColumn == "occ_date" - if config.PartitionColumn != "" && !webCustomization && !minigameCustomization && !dnfCustomization { + if config.PartitionColumn != "" && !webCustomization && !iegamsCustomization && + !minigameCustomization && !dnfCustomization { // 分区表至少会有一个分区 for _, v := range output.CmdResults[0].TableData { // 如果发现分区字段、分区间隔与规则不符合,需要重新做分区,页面调整了分区规则