2009-11-27 00:32:01 +01:00
|
|
|
# ==== Purpose ====
|
|
|
|
#
|
2012-01-23 17:50:54 +01:00
|
|
|
# Several test primitives from mysql-test/extra/rpl_tests
|
|
|
|
# are shared for test cases for MyISAM, InnoDB, NDB and
|
|
|
|
# other engines.
|
|
|
|
# For NDB engine all events will be added by NDB injector
|
|
|
|
# so tests only can continue after injector is ready,
|
|
|
|
# this test waits for proper injector thread state.
|
2009-11-27 00:32:01 +01:00
|
|
|
#
|
|
|
|
# ==== Usage ====
|
|
|
|
#
|
|
|
|
# let $engine_type= NDB;
|
|
|
|
# --source include/wait_for_ndb_to_binlog.inc
|
|
|
|
#
|
|
|
|
# ==== Parameters =====
|
|
|
|
#
|
|
|
|
# $engine_type
|
2012-01-23 17:50:54 +01:00
|
|
|
# Type of engine. If type is NDB then it waits for injector
|
|
|
|
# thread proper state.
|
2009-11-27 00:32:01 +01:00
|
|
|
|
|
|
|
if (`SELECT UPPER(LEFT('$engine_type',3)) = 'NDB'`) {
|
2012-01-23 17:50:54 +01:00
|
|
|
let $show_statement= SHOW PROCESSLIST;
|
|
|
|
let $field= State;
|
|
|
|
let $condition= = 'Waiting for event from ndbcluster';
|
|
|
|
source include/wait_show_condition.inc;
|
2009-11-27 00:32:01 +01:00
|
|
|
}
|