mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 23:34:34 +01:00
478fcfab0e
In the output from mysqlbinlog, incident log events were represented as just a comment. Since the incident log event represents an incident that could cause the contents of the database to change without being logged to the binary log, it means that if the SQL is applied to a server, it could potentially lead to that the databases are out of sync. In order to handle that, this patch adds the statement "RELOAD DATABASE" to the SQL output for the incident log event. This will require a DBA to edit the file and handle the case as apropriate before applying the output to a server.
12 lines
167 B
Text
12 lines
167 B
Text
CREATE TABLE t1 (a INT);
|
|
INSERT INTO t1 VALUES (1),(2),(3);
|
|
SELECT * FROM t1;
|
|
a
|
|
1
|
|
2
|
|
3
|
|
REPLACE INTO t1 VALUES (4);
|
|
DROP TABLE t1;
|
|
FLUSH LOGS;
|
|
Contain RELOAD DATABASE
|
|
1
|