Debian Codegraph @

mysql-test/suite/ndb/include/ndb_index_stat_wait.inc

raw
1 # Wait for index stats thread to reach state matching global
2 # ndb_index_stat_enable. This avoids error 4721 after cluster
3 # initial restart or after enable was turned off and on again.
4
5 while(!`select count(*) from dual
6 where @@global.ndb_index_stat_enable =
7 (select count(*) from performance_schema.global_status
8 where variable_name = 'NDB_INDEX_STAT_STATUS'
9 and concat(',',variable_value,',') like '%,allow:1,%')`)
10 {
11 sleep 0.1;
12 }