mariadb/client
Sergey Vojtovich 3568427d11 MDEV-18450 Slaves wait shutdown
The patches features an optional shutdown behavior to hold on until
after all connected slaves have been sent the last binlogged event.
The connected slave is one whose START SLAVE has been acknowledged and
that was not stopped since that though it could be technically
reconnecting in background.

The solution therefore disallows killing the dump thread until is has
found EOF of the latest binlog file.  It is up to the shutdown
requester (DBA) to set up a sufficiently large shutdown timeout value
for shudown to wait patiently until lagging behind slaves have been
synchronized. On the other hand if a specific slave needs exclusion
from synchronization the DBA would have to stop it manually which
would terminate its dump thread.

`mysqladmin shutdown' is extended with a `--wait_for_all_slaves' option
which translates to `SHUTDOW WAIT FOR ALL SLAVES' sql query
to enable the feature on the client side.

The patch also performs a small refactoring of the server shutdown
around close_connections() to introduce kill thread phases which
are two as of current.
2019-03-12 17:34:48 +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-18450 Slaves wait shutdown 2019-03-12 17:34:48 +02:00
CMakeLists.txt Merge 10.1 into 10.2 2019-01-24 14:43:29 +02:00
completion_hash.cc Added name to MEM_ROOT for esier debugging 2018-02-02 11:08:36 +02:00
completion_hash.h Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
echo.c Fix for Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 15:53:48 +01:00
my_readline.h MDEV-4297 mysql --binary-mode 2013-06-10 21:45:30 +02:00
mysql.cc Unbreak the Windows build after d3e3bb77c2 2019-03-08 12:13:53 +02:00
mysql_plugin.c cleanup: create_temp_file() 2018-05-21 16:34:10 +00:00
mysql_upgrade.c MDEV-17658 change the structure of mysql.user table 2018-12-12 00:31:44 +01:00
mysqladmin.cc MDEV-18450 Slaves wait shutdown 2019-03-12 17:34:48 +02:00
mysqlbinlog.cc Merge branch '10.3' into 10.4 2019-02-21 14:40:52 +01:00
mysqlcheck.c MDEV-16536 Remove shared memory transport 2018-08-20 14:11:36 +01:00
mysqldump.c Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
mysqlimport.c Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
mysqlshow.c Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
mysqlslap.c Changed some MySQL names in messages to MariaDB 2018-12-09 20:49:05 +02:00
mysqltest.cc Merge 10.3 into 10.4 2019-03-12 16:14:31 +02:00
readline.cc MDEV-6650 - LINT_INIT emits code in non-debug builds 2015-03-16 14:48:22 +04:00
sql_string.cc.dontuse spelling fixes 2017-03-07 13:38:06 +04:00
sql_string.h.dontuse mysql-5.5.32 merge 2013-07-16 19:09:54 +02:00