| 1 |
--source include/have_debug.inc |
| 2 |
--source include/have_debug_sync.inc |
| 3 |
# mere to limit it run rate |
| 4 |
--source include/have_binlog_format_row.inc |
| 5 |
|
| 6 |
connect(con1,localhost,root,,); |
| 7 |
FLUSH LOGS; |
| 8 |
FLUSH LOGS; |
| 9 |
FLUSH LOGS; |
| 10 |
|
| 11 |
# This forced synchronization pattern ensures con1 will execute its retry |
| 12 |
# path. More specifically, con1 should see that the cache of log files it |
| 13 |
# creates during SHOW BINARY LOGS becomes invalidated after con2 completes |
| 14 |
# RESET MASTER. |
| 15 |
SET DEBUG_SYNC= "at_after_lock_index SIGNAL con1_ready WAIT_FOR con1_go"; |
| 16 |
--send SHOW BINARY LOGS |
| 17 |
|
| 18 |
connect(con2,localhost,root,,); |
| 19 |
SET DEBUG_SYNC= "now WAIT_FOR con1_ready"; |
| 20 |
RESET MASTER; |
| 21 |
FLUSH LOGS; |
| 22 |
SET DEBUG_SYNC= "now SIGNAL con1_go"; |
| 23 |
|
| 24 |
--connection con1 |
| 25 |
--echo # The correct result must consists of two records |
| 26 |
--replace_column 2 # |
| 27 |
--reap |
| 28 |
|
| 29 |
SET debug_sync = 'reset'; |