diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-12-14 17:47:10 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-15 09:35:25 +0100 |
commit | 8938031bc7eb78d406553465341338038cfb2e1a (patch) | |
tree | 56b099a95ed70d48496ae83e1782fa6447134a09 | |
parent | 8d770859c9d28c6b7ce8b052eaca706a18651562 (diff) | |
download | mariadb-git-8938031bc7eb78d406553465341338038cfb2e1a.tar.gz |
InnoDB: don't stop purge threads if there's work to do
in slow shutdown mode don't stop purge threads until they've
purged everything there is
-rw-r--r-- | storage/innobase/srv/srv0srv.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc index efc33a9baa2..51e898d98d8 100644 --- a/storage/innobase/srv/srv0srv.cc +++ b/storage/innobase/srv/srv0srv.cc @@ -2668,7 +2668,7 @@ srv_purge_should_exit( ulint n_purged) /*!< in: pages purged in last batch */ { if (thd_kill_level(thd)) { - return(true); + return(srv_fast_shutdown != 0 || n_purged == 0); } switch (srv_shutdown_state) { |