Skip to content

Commit

Permalink
fix: partition_special_services #8538
Browse files Browse the repository at this point in the history
  • Loading branch information
xfan0805 authored and iSecloud committed Dec 11, 2024
1 parent 9b7be6d commit 4ca8f81
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
// 如果发现分区字段、分区间隔与规则不符合,需要重新做分区,页面调整了分区规则
Expand Down

0 comments on commit 4ca8f81

Please sign in to comment.