mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
e3cfb7c803
Logging logic: - Log tables, just before they are dropped, to the ddl log - After the last table for the statement is dropped, log an xid for the whole ddl log event In case of crash: - Remove first any active DROP TABLE events from the ddl log that matches xids found in binary log (this mean the drop was successful and was propery logged). - Loop over all active DROP TABLE events - Ensure that the table is completely dropped - Write a DROP TABLE entry to the binary log with the dropped tables. Other things: - Added code to ha_drop_table() to be able to tell the difference if a get_new_handler() failed because of out-of-memory or because the handler refused/was not able to create a a handler. This was needed to get sequences to work as sequences needs a share object to be passed to get_new_handler() - TC_LOG_BINLOG::recover() was changed to always collect Xid's from the binary log and always call ddl_log_close_binlogged_events(). This was needed to be able to collect DROP TABLE events with embedded Xid's (used by ddl log). - Added a new variable "$grep_script" to binlog filter to be able to find only rows that matches a regexp. - Had to adjust some test that changed because drop statements are a bit larger in the binary log than before (as we have to store the xid) Other things: - MDEV-25588 Atomic DDL: Binlog query event written upon recovery is corrupt fixed (in the original commit). |
||
---|---|---|
.. | ||
disabled.def | ||
gtid.cnf | ||
gtid.result | ||
gtid.test | ||
gtid_ignore_duplicates.cnf | ||
gtid_ignore_duplicates.result | ||
gtid_ignore_duplicates.test | ||
gtid_slave_pos.result | ||
gtid_slave_pos.test | ||
info_logs-master.opt | ||
info_logs.result | ||
info_logs.test | ||
load_data.result | ||
load_data.test | ||
mdev-8874.cnf | ||
mdev-8874.result | ||
mdev-8874.test | ||
mdev-9544.cnf | ||
mdev-9544.result | ||
mdev-9544.test | ||
multi_parallel.cnf | ||
multi_parallel.result | ||
multi_parallel.test | ||
multi_parallel_loop.inc | ||
multi_source_slave_alias_replica.result | ||
multi_source_slave_alias_replica.test | ||
multisource.result | ||
multisource.test | ||
my.cnf | ||
relaylog_events.result | ||
relaylog_events.test | ||
reset_slave.result | ||
reset_slave.test | ||
simple.result | ||
simple.test | ||
skip_counter.result | ||
skip_counter.test | ||
status_vars.result | ||
status_vars.test | ||
syntax.result | ||
syntax.test |