summaryrefslogtreecommitdiff
path: root/sql/wsrep_sst.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-08-26 10:45:47 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-08-26 10:45:47 +0300
commit6a042281bdbfe91cc39e1f6e02295bfe7eaa9d43 (patch)
tree54ae0a1b6b234dd1a1b6c4c93528be18197365e4 /sql/wsrep_sst.cc
parent65f30050aafb3821ba63a3b837c98cf4d2334254 (diff)
parent21a96581fd1dd11c5605dd89e3adbaabdf6de5eb (diff)
downloadmariadb-git-6a042281bdbfe91cc39e1f6e02295bfe7eaa9d43.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'sql/wsrep_sst.cc')
-rw-r--r--sql/wsrep_sst.cc18
1 files changed, 5 insertions, 13 deletions
diff --git a/sql/wsrep_sst.cc b/sql/wsrep_sst.cc
index a225fbd5a65..ecf4cdada17 100644
--- a/sql/wsrep_sst.cc
+++ b/sql/wsrep_sst.cc
@@ -1,4 +1,4 @@
-/* Copyright 2008-2015 Codership Oy <http://www.codership.com>
+/* Copyright 2008-2020 Codership Oy <http://www.codership.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -186,7 +186,6 @@ bool wsrep_before_SE()
static bool sst_complete = false;
static bool sst_needed = false;
-static bool sst_in_progress = false;
#define WSREP_EXTEND_TIMEOUT_INTERVAL 30
#define WSREP_TIMEDWAIT_SECONDS 10
@@ -1548,11 +1547,11 @@ static void* sst_donor_thread (void* a)
wsrep_uuid_t ret_uuid= WSREP_UUID_UNDEFINED;
// seqno of complete SST
wsrep_seqno_t ret_seqno= WSREP_SEQNO_UNDEFINED;
- // SST is now in progress
- sst_in_progress= true;
- wsp::thd thd(FALSE); // we turn off wsrep_on for this THD so that it can
- // operate with wsrep_ready == OFF
+ // We turn off wsrep_on for this THD so that it can
+ // operate with wsrep_ready == OFF
+ // We also set this SST thread THD as system thread
+ wsp::thd thd(FALSE, true);
wsp::process proc(arg->cmd, "r", arg->env);
err= proc.error();
@@ -1651,8 +1650,6 @@ wait_signal:
wsrep->sst_sent (wsrep, &state_id, -err);
proc.wait();
- sst_in_progress= false;
-
return NULL;
}
@@ -1827,8 +1824,3 @@ void wsrep_SE_initialized()
{
SE_initialized = true;
}
-
-bool wsrep_is_sst_progress()
-{
- return (sst_in_progress);
-}