summaryrefslogtreecommitdiff
path: root/mysys/my_delete.c
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2014-03-14 16:29:23 +0200
committerMichael Widenius <monty@mariadb.org>2014-03-14 16:29:23 +0200
commitdd13db6f4ae70f45038c1d000cb1439e17170d98 (patch)
tree54f4631095339c004a572909a9909c291e16528d /mysys/my_delete.c
parentbde11c1ab59c40be6043e156b0427e1d7105ec85 (diff)
downloadmariadb-git-dd13db6f4ae70f45038c1d000cb1439e17170d98.tar.gz
MDEV-5829: STOP SLAVE resets global status variables
Reason for the bug was an optimization for higher connect speed where we moved when global status was updated, but forgot to update states when slave thread dies. Fixed by adding thd->add_status_to_global() before deleting slave thread's thd. mysys/my_delete.c: Added missing newline sql/mysqld.cc: Use add_status_to_global() sql/slave.cc: Added missing add_status_to_global() sql/sql_class.cc: Use add_status_to_global() sql/sql_class.h: Simplify adding local status to global by adding add_status_to_global()
Diffstat (limited to 'mysys/my_delete.c')
-rw-r--r--mysys/my_delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_delete.c b/mysys/my_delete.c
index f5737ea66e0..155e925e9ba 100644
--- a/mysys/my_delete.c
+++ b/mysys/my_delete.c
@@ -150,4 +150,4 @@ error:
my_osmaperr(last_error);
DBUG_RETURN(-1);
}
-#endif \ No newline at end of file
+#endif