summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-12-14 17:47:10 +0100
committerSergei Golubchik <serg@mariadb.org>2016-12-14 20:27:14 +0100
commitd2b57806933dab0f986cd024170fe20a1ba2df99 (patch)
tree3d674ed6f9803ee0d2edfe68ab6fd4a617ed553d
parentf9835310c023b2e4e8937703ccf7d7ea7eecbfee (diff)
downloadmariadb-git-d2b57806933dab0f986cd024170fe20a1ba2df99.tar.gz
TEST: 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.cc2
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) {