mirror of
https://github.com/MariaDB/server.git
synced 2025-02-12 00:15:35 +01:00
![Christian Gonzalez](/assets/img/avatar_default.png)
Renames the upgrade state file, and ensures the old file is properly removed when `mariadb-upgrade` tool is executed. All new code of the whole pull request, including one or several files that are either new files or modified ones, are contributed under the BSD-new license. I am contributing on behalf of my employer Amazon Web Services, Inc.
15 lines
609 B
PHP
15 lines
609 B
PHP
# Routine to be called by pfs_upgrade.test
|
|
# $out_file and $err_file must be set within pfs_upgrade.test.
|
|
#
|
|
|
|
--source include/count_sessions.inc
|
|
--exec $MYSQL_UPGRADE --skip-verbose --force > $MYSQLTEST_VARDIR/tmp/out_file 2> $MYSQLTEST_VARDIR/tmp/err_file
|
|
--source include/wait_until_count_sessions.inc
|
|
|
|
# Verify that mysql_upgrade does not complain about the performance_schema
|
|
|
|
--replace_regex /at line [0-9]+/at line ###/
|
|
--cat_file $MYSQLTEST_VARDIR/tmp/err_file
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/out_file
|
|
--remove_file $MYSQLTEST_VARDIR/tmp/err_file
|
|
--remove_file $MYSQLD_DATADIR/mariadb_upgrade_info
|