mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
0697ee265f
Keep track of how many pending XIDs (transactions that are prepared in storage engine and written into binlog, but not yet durably committed on disk in the engine) there are in each binlog. When the count of one binlog drops to zero, write a new binlog checkpoint event, telling which is the oldest binlog with pending XIDs. When doing XA recovery after a crash, check the last binlog checkpoint event, and scan all binlog files from that point onwards for XIDs that must be committed if found in prepared state inside engine. Remove the code in binlog rotation that waits for all prepared XIDs to be committed before writing a new binlog file (this is no longer necessary when recovery can scan multiple binlog files).
21 lines
691 B
PHP
21 lines
691 B
PHP
##############################################################################
|
|
# Show binary log events
|
|
#
|
|
# Useage:
|
|
# let $binlog_file= master-bin.000002;
|
|
# let $binlog_start= 240;
|
|
# let $binlog_limit= 1, 3;
|
|
# source include/show_binlog_events.inc;
|
|
#
|
|
# It shows the first binary log file if $binlog_file is not given.
|
|
#
|
|
# It shows events from the end position of the binlog checkpoint event if
|
|
# $binlog_start is not given.
|
|
#
|
|
# It shows all of the events if $binlog_limit is not given.
|
|
# $binlog_format has the same semantic with 'LIMIT' option.
|
|
#
|
|
##############################################################################
|
|
|
|
--let $is_relay_log= 0
|
|
--source include/show_events.inc
|