diff options
author | unknown <knielsen@knielsen-hq.org> | 2012-06-22 11:46:28 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2012-06-22 11:46:28 +0200 |
commit | 0697ee265fa4fe4d617dc96194fcf2532fd73402 (patch) | |
tree | 2da975668ffb4a36601eccb1b852a10dc9650bca /mysql-test/suite/binlog/r/binlog_stm_binlog.result | |
parent | 9fe317ffd6e3545e7896389641b74c2977a5e4b4 (diff) | |
download | mariadb-git-0697ee265fa4fe4d617dc96194fcf2532fd73402.tar.gz |
MDEV-181: XID crash recovery across binlog boundaries
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).
Diffstat (limited to 'mysql-test/suite/binlog/r/binlog_stm_binlog.result')
-rw-r--r-- | mysql-test/suite/binlog/r/binlog_stm_binlog.result | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/suite/binlog/r/binlog_stm_binlog.result b/mysql-test/suite/binlog/r/binlog_stm_binlog.result index 062f4f4e906..f9d9fa1d18d 100644 --- a/mysql-test/suite/binlog/r/binlog_stm_binlog.result +++ b/mysql-test/suite/binlog/r/binlog_stm_binlog.result @@ -521,6 +521,7 @@ BINLOG ' SHOW BINLOG EVENTS; Log_name Pos Event_type Server_id End_log_pos Info # # Format_desc 1 # Server ver: #, Binlog ver: # +# # Binlog_checkpoint 1 # master-bin.000001 # # Query 1 # use `test`; CREATE TABLE t1 (a INT PRIMARY KEY) # # Query 1 # BEGIN # # Query 1 # use `test`; INSERT INTO t1 VALUES (1) |