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 <pete@port.direct>
This commit is contained in:
Pete Birley 2019-04-15 10:24:55 -05:00
parent 0b14152664
commit fca6519901

View File

@ -724,15 +724,6 @@ def run_mysqld(cluster='existing'):
mysqld_cmd = ['mysqld'] mysqld_cmd = ['mysqld']
if cluster == 'new': if cluster == 'new':
mysqld_cmd.append('--wsrep-new-cluster') 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' mysql_data_dir = '/var/lib/mysql'
db_test_dir = "{0}/mysql".format(mysql_data_dir) db_test_dir = "{0}/mysql".format(mysql_data_dir)