diff options
author | unknown <knielsen@knielsen-hq.org> | 2013-03-28 13:03:51 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2013-03-28 13:03:51 +0100 |
commit | 5aaf73fcaac30ebfd45188c24de3b57aa0929c36 (patch) | |
tree | 6df5f76db8f127fc156c5c2a0b076a88536ba917 /sql/rpl_gtid.cc | |
parent | 9303ecd02202afac0b7ab1cdec7bfe3e6c3aef95 (diff) | |
download | mariadb-git-5aaf73fcaac30ebfd45188c24de3b57aa0929c36.tar.gz |
MDEV-26: Global transaction ID.
Add tests crashing the slave in the middle of replication and checking that
replication picks-up again on restart in a crash-safe way.
Fix silly code that causes crash by inserting uninitialised data into a hash.
Diffstat (limited to 'sql/rpl_gtid.cc')
-rw-r--r-- | sql/rpl_gtid.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/rpl_gtid.cc b/sql/rpl_gtid.cc index cdb948f3618..d6a6ed90bd3 100644 --- a/sql/rpl_gtid.cc +++ b/sql/rpl_gtid.cc @@ -329,6 +329,7 @@ rpl_slave_state::record_gtid(THD *thd, const rpl_gtid *gtid, uint64 sub_id, table->field[1]->store(sub_id, true); table->field[2]->store((ulonglong)gtid->server_id, true); table->field[3]->store(gtid->seq_no, true); + DBUG_EXECUTE_IF("inject_crash_before_write_rpl_slave_state", DBUG_SUICIDE();); if ((err= table->file->ha_write_row(table->record[0]))) goto end; |