summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-06-08 11:45:28 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-06-08 11:45:28 +0300
commit57022dfb25b931a329905364d7056ac61950d300 (patch)
tree94a7131bfffa205d89a8563a5c749f843b920ecb /storage
parenteb14e073ea121954fb5be6fac92fd84b7d57bb07 (diff)
parentbefb0bed68b555852e01859a846bf7ac40f15dbb (diff)
downloadmariadb-git-57022dfb25b931a329905364d7056ac61950d300.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/srv/srv0srv.cc4
-rw-r--r--storage/innobase/srv/srv0start.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc
index 505d8bbeebd..f9d5ede3794 100644
--- a/storage/innobase/srv/srv0srv.cc
+++ b/storage/innobase/srv/srv0srv.cc
@@ -2657,7 +2657,7 @@ srv_purge_coordinator_suspend(
rw_lock_x_lock(&purge_sys.latch);
- stop = srv_shutdown_state == SRV_SHUTDOWN_NONE
+ stop = srv_shutdown_state <= SRV_SHUTDOWN_INITIATED
&& purge_sys.paused();
if (!stop) {
@@ -2722,7 +2722,7 @@ DECLARE_THREAD(srv_purge_coordinator_thread)(
/* If there are no records to purge or the last
purge didn't purge any records then wait for activity. */
- if (srv_shutdown_state == SRV_SHUTDOWN_NONE
+ if (srv_shutdown_state <= SRV_SHUTDOWN_INITIATED
&& srv_undo_sources
&& (n_total_purged == 0 || purge_sys.paused())) {
diff --git a/storage/innobase/srv/srv0start.cc b/storage/innobase/srv/srv0start.cc
index c3558a2fe00..edae63c0e47 100644
--- a/storage/innobase/srv/srv0start.cc
+++ b/storage/innobase/srv/srv0start.cc
@@ -2320,7 +2320,7 @@ skip_monitors:
thread_started[5 + i + SRV_MAX_N_IO_THREADS] = true;
}
- while (srv_shutdown_state == SRV_SHUTDOWN_NONE
+ while (srv_shutdown_state <= SRV_SHUTDOWN_INITIATED
&& srv_force_recovery < SRV_FORCE_NO_BACKGROUND
&& !purge_sys.enabled()) {
ib::info() << "Waiting for purge to start";