HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //usr/share/mysql-test/include/wait_for_ndb_to_binlog.inc
# ==== Purpose ====
# 
# 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.
#
# ==== Usage ====
#
# let $engine_type= NDB;
# --source include/wait_for_ndb_to_binlog.inc
#
# ==== Parameters =====
#
# $engine_type
#   Type of engine. If type is NDB then it waits for injector
#   thread proper state.

if (`SELECT UPPER(LEFT('$engine_type',3)) = 'NDB'`) {
  let $show_statement= SHOW PROCESSLIST;
  let $field= State;
  let $condition= = 'Waiting for event from ndbcluster';
  source include/wait_show_condition.inc;
}