summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/wsrep_var.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/wsrep_var.cc b/sql/wsrep_var.cc
index d187c7b9e35..37e59763249 100644
--- a/sql/wsrep_var.cc
+++ b/sql/wsrep_var.cc
@@ -453,7 +453,7 @@ void wsrep_node_address_init (const char* value)
bool wsrep_slave_threads_check (sys_var *self, THD* thd, set_var* var)
{
mysql_mutex_lock(&LOCK_wsrep_slave_threads);
- wsrep_slave_count_change = var->value->val_int() - wsrep_slave_threads;
+ wsrep_slave_count_change += (var->value->val_int() - wsrep_slave_threads);
mysql_mutex_unlock(&LOCK_wsrep_slave_threads);
return 0;