1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

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.
This commit is contained in:
Nuno Carvalho
2012-11-20 12:37:23 +00:00
parent fe1bb69862
commit fb313032a6
19 changed files with 479 additions and 0 deletions

View File

@ -506,6 +506,8 @@ typedef struct system_variables
double long_query_time_double;
my_bool pseudo_slave_mode;
} SV;