| 1 |
--source include/have_ndb.inc |
| 2 |
|
| 3 |
# Test that the number of reported schema distribution participants |
| 4 |
# quickly resolves to 2. The mysql server has already started before |
| 5 |
# this test begins running, so this should happen within one second. |
| 6 |
# |
| 7 |
# The number 2 comes from the 2 mysql servers defined in |
| 8 |
# mysql-test/suite/ndb/my.cnf |
| 9 |
|
| 10 |
let $time_left= 5; |
| 11 |
let $p=query_get_value(SHOW STATUS LIKE 'Ndb_schema_participant_count', Value, 1); |
| 12 |
while($p != 2) |
| 13 |
{ |
| 14 |
dec $time_left; |
| 15 |
if($time_left == 0) |
| 16 |
{ |
| 17 |
echo Final count: $p; |
| 18 |
die; |
| 19 |
} |
| 20 |
sleep 0.200; |
| 21 |
let $p=query_get_value(SHOW STATUS LIKE 'Ndb_schema_participant_count', Value, 1); |
| 22 |
} |
| 23 |
|
| 24 |
echo ok; |