summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorNuno Carvalho <nuno.carvalho@oracle.com>2012-11-20 12:37:23 +0000
committerNuno Carvalho <nuno.carvalho@oracle.com>2012-11-20 12:37:23 +0000
commitd0f5427cd77327e858d2c661ec0d4a8e4794ac55 (patch)
treed1ecf48b3c9b6cdff5f784b7d154a1833295ea97 /sql/sql_class.h
parentea69084e02e80d0dd07b1fc95f53167eecc6a0fd (diff)
downloadmariadb-git-d0f5427cd77327e858d2c661ec0d4a8e4794ac55.tar.gz
BUG#15891524: RLI_FAKE MODE IS NOT UNSET AFTER BINLOG REPLAY
When a binlog is replayed into a server, e.g.: $ mysqlbinlog binlog.000001 | mysql it sets a pseudo slave mode on the client connection in order to server be able to read binlog events, there is, a format description event is needed to correctly read following events. Also this pseudo slave mode applies to the current connection replication rules that are needed to correctly apply binlog events. If a binlog dump is sourced on a connection, this pseudo slave mode will remains after it, what will apply unexpected rules from customer perspective to following commands. Added a new SET statement to binlog dump that will unset pseudo slave mode at the end of dump file.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 4f65aa25796..8140ba4a0f1 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -506,6 +506,8 @@ typedef struct system_variables
double long_query_time_double;
+ my_bool pseudo_slave_mode;
+
} SV;