From fca6519901d90289f65bcab05c29bb03aac3690d Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Mon, 15 Apr 2019 10:24:55 -0500 Subject: [PATCH] MariaDB: Remove mysql_upgrade as implemntation breaks mariabackup This PS temporaily removes the mysql_upgrade logic as it breaks mariabackup as currently implemented. Change-Id: I1f74d104b004ddb641d354dfee82557b18c3677a Signed-off-by: Pete Birley --- mariadb/templates/bin/_start.py.tpl | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mariadb/templates/bin/_start.py.tpl b/mariadb/templates/bin/_start.py.tpl index 0620697901..0a91009f46 100644 --- a/mariadb/templates/bin/_start.py.tpl +++ b/mariadb/templates/bin/_start.py.tpl @@ -724,15 +724,6 @@ def run_mysqld(cluster='existing'): mysqld_cmd = ['mysqld'] if cluster == 'new': mysqld_cmd.append('--wsrep-new-cluster') - else: - if int(instance_number) == 0: - active_endpoints = get_active_endpoints() - if active_endpoints and len(active_endpoints) == ( - int(mariadb_replicas) - 1): - run_cmd_with_logging([ - 'mysql_upgrade', - '--defaults-file=/etc/mysql/admin_user.cnf' - ], logger) mysql_data_dir = '/var/lib/mysql' db_test_dir = "{0}/mysql".format(mysql_data_dir)