mariadb/client
Monty 0fd4d6d3bb MDEV-27068 running mariadb-upgrade in parallel make it hangs forever
MDEV-27107 prevent two mariadb-upgrade running in parallel
MDEV-27279 mariadb_upgrade add --check-if-upgrade-is-needed /
           restrict tests to major version

Code is based of pull request from Daniel Black, but with a several
extensions.

- mysql_upgrade now locks the mysql_upgrade file with my_lock()
  (Advisory record locking). This ensures that two mysql_upgrades
   cannot be run in parallel.
- Added --check-if-upgrade-is-needed to mysql_upgrade. This will return
  0 if one has to run mysql_upgrade.

Other changes:
- mysql_upgrade will now immediately exit if the major version and minor
  version  (two first numbers in the version string) is same as last run.
  Before this change mysql_upgrade was run if the version string was different
  from last run.
- Better messages when there is no need to run mysql_upgrade.
- mysql_upgrade --verbose now prints out a lot more information about
  the version checking.
- mysql_upgrade --debug now uses default debug arguments if there is no
  option to --debug
- "MySQL" is renamed to MariaDB in the messages
- mysql_upgrade version increased to 2.0

Notes
Verifying "prevent two mariadb-upgrade running in parallel" was
done in a debugger as it would be a bit complex to do that in mtr.

Reviewer: Danial Black <daniel@mariadb.org>
2022-01-20 15:14:59 +02:00
..
async_example.c MWL#192: non-blocking client API, after-review fixes. 2012-01-06 12:43:18 +01:00
client_priv.h MDEV-27068 running mariadb-upgrade in parallel make it hangs forever 2022-01-20 15:14:59 +02:00
CMakeLists.txt Cleanup - remove confusing comment. 2021-09-01 18:21:00 +02:00
completion_hash.cc MDEV-22387: Do not violate __attribute__((nonnull)) 2020-11-02 14:19:21 +02:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
echo.c Update FSF Address 2019-05-11 21:29:06 +03:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc MDEV-27191 MariaDB client - "system" command does not work on Windows 2021-12-07 17:42:47 +01:00
mysql_plugin.c MDEV-19227: mysql_plugin doesn't run bootstrap from source 2021-09-07 14:25:56 +02:00
mysql_upgrade.c MDEV-27068 running mariadb-upgrade in parallel make it hangs forever 2022-01-20 15:14:59 +02:00
mysqladmin.cc MDEV-19750 mysql command wrong encoding 2019-06-17 18:04:47 +01:00
mysqlbinlog.cc MDEV-16372 ER_BASE64_DECODE_ERROR upon replaying binary log via mysqlbinlog --verbose 2020-08-31 18:45:14 +03:00
mysqlcheck.c MDEV-19750 mysql command wrong encoding 2019-06-17 18:04:47 +01:00
mysqldump.c MDEV-20939: Race condition between mysqldump import and InnoDB persistent 2021-01-27 22:13:07 +05:30
mysqlimport.c Merge branch '10.1' into 10.2 2020-06-11 22:35:30 +03:00
mysqlshow.c MDEV-19750 mysql command wrong encoding 2019-06-17 18:04:47 +01:00
mysqlslap.c Merge branch '10.1' into 10.2 2020-06-11 22:35:30 +03:00
mysqltest.cc fix mysqlest crash on ./mtr --sp innodb_fts.innodb-fts-stopword 2021-06-12 12:38:53 +02:00
readline.cc Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_string.cc.dontuse Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sql_string.h.dontuse Update FSF Address 2019-05-11 21:29:06 +03:00