summaryrefslogtreecommitdiffstats
path: root/mysql-relay-logging.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-02-11 11:48:04 +0100
committerRemi Collet <fedora@famillecollet.com>2017-02-11 11:48:04 +0100
commitcc426cff465c5e67cc7ae21af2ca6924ed59db20 (patch)
tree88e02fdc8779c3a39e5474c12f4754e9b4708994 /mysql-relay-logging.patch
parentbb5aa75b1d4c9589faf6dd1e1bba74f65a06656b (diff)
compat-mysql51: 5.1.73HEADmaster
Diffstat (limited to 'mysql-relay-logging.patch')
-rw-r--r--mysql-relay-logging.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-relay-logging.patch b/mysql-relay-logging.patch
new file mode 100644
index 0000000..074e141
--- /dev/null
+++ b/mysql-relay-logging.patch
@@ -0,0 +1,20 @@
+--- mysql-5.1.73/sql/sql_parse.cc.orig 2013-11-04 19:52:27.000000000 +0100
++++ mysql-5.1.73/sql/sql_parse.cc 2015-11-18 13:04:53.692712812 +0100
+@@ -19,6 +19,7 @@
+ #include "mysql_priv.h"
+ #include "sql_repl.h"
+ #include "rpl_filter.h"
++#include "rpl_mi.h"
+ #include "repl_failsafe.h"
+ #include <m_ctype.h>
+ #include <myisam.h>
+@@ -7022,7 +7023,9 @@ bool reload_acl_and_cache(THD *thd, ulon
+ #ifdef HAVE_REPLICATION
+ int rotate_error= 0;
+ pthread_mutex_lock(&LOCK_active_mi);
++ pthread_mutex_lock(&active_mi->data_lock);
+ rotate_error= rotate_relay_log(active_mi);
++ pthread_mutex_unlock(&active_mi->data_lock);
+ pthread_mutex_unlock(&LOCK_active_mi);
+ if (rotate_error)
+ *write_to_binlog= -1;