Skip to content

Commit

Permalink
fix(dbm-services): omission_mysql_version_parse_func TencentBlueKing#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Dec 3, 2024
1 parent 5b8263b commit 5bf5fe4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def tendbha_cluster_upgrade_subflow(


def deal_mycnf(pkg_name, db_version: str, db_config: dict):
if mysql_version_parse(db_version) >= ("5.7.0"):
if mysql_version_parse(db_version) >= mysql_version_parse("5.7.0"):
will_del_keys = ["slave_parallel_type", "replica_parallel_type"]
# 如果不是tmysql的话,需要删除一些配置
if "tmysql" not in pkg_name:
Expand All @@ -586,7 +586,7 @@ def deal_mycnf(pkg_name, db_version: str, db_config: dict):
for key in will_del_keys:
if db_config[port].get(key):
del db_config[port][key]
if mysql_version_parse(db_version) >= ("8.0.0"):
if mysql_version_parse(db_version) >= mysql_version_parse("8.0.0"):
will_del_keys = ["innodb_large_prefix"]
for port in db_config:
for key in will_del_keys:
Expand Down

0 comments on commit 5bf5fe4

Please sign in to comment.