1 # include/wait_for_binlog_event.inc
5 # Waits until SHOW BINLOG EVENTS has returned in last event a specified substring.
9 # let $wait_binlog_event= DROP;
10 # --source include/wait_for_binlog_event.inc
12 let $_loop_count= 300;
16 while (`SELECT INSTR("$_last_event","$wait_binlog_event") = 0`)
21 --source include/show_rpl_debug_info.inc
22 --die ERROR: failed while waiting for $wait_binlog_event in binlog
25 let $_event= query_get_value(SHOW BINLOG EVENTS, Info, $_event_pos);
26 let $_last_event= $_event;
27 while (`SELECT "$_event" != "No such row"`)
30 let $_last_event= $_event;
31 let $_event= query_get_value(SHOW BINLOG EVENTS, Info, $_event_pos);