summaryrefslogtreecommitdiff
path: root/sql/wsrep_var.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2018-08-27 12:03:02 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2018-08-27 16:10:33 +0300
commita290b807e8ebba48a079e32cd53f33eca2a7caf4 (patch)
treee222671df63e1999477e3287ed020b522e3b0318 /sql/wsrep_var.cc
parentb6f055025bd9ba7b533d023d509cb6f755a65db9 (diff)
downloadmariadb-git-a290b807e8ebba48a079e32cd53f33eca2a7caf4.tar.gz
MDEV-17062: Test failure on galera.MW-336
MDEV-17058: Test failure on wsrep.variables MDEV-17060: Test failure on galera.galera_var_slave_threads Fix incorrect calculation of increased applier (slave) threads. Note that increase change takes effect "immediately" but we should use proper wait condition to wait it. Reducing the number of slave threads is not immediate as thread will only exit after a replication event.
Diffstat (limited to 'sql/wsrep_var.cc')
-rw-r--r--sql/wsrep_var.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc
index 7fe120beb8e..aaae487b2e2 100644
--- a/sql/wsrep_var.cc
+++ b/sql/wsrep_var.cc
@@ -594,7 +594,9 @@ void wsrep_node_address_init (const char* value)
static void wsrep_slave_count_change_update ()
{
- wsrep_slave_count_change += (wsrep_slave_threads - wsrep_prev_slave_threads);
+ wsrep_slave_count_change = (wsrep_slave_threads - wsrep_prev_slave_threads);
+ WSREP_DEBUG("Change on slave threads: New %lu old %lu difference %lu",
+ wsrep_slave_threads, wsrep_prev_slave_threads, wsrep_slave_count_change);
wsrep_prev_slave_threads = wsrep_slave_threads;
}