| 1 |
# |
| 2 |
# Wait until there are no objects excluded from metadata sync detection |
| 3 |
# |
| 4 |
# Arguments: |
| 5 |
# max_wait - number of seconds to wait before timing out |
| 6 |
# |
| 7 |
--let $excluded_count = query_get_value(SHOW STATUS LIKE 'Ndb_metadata_excluded_count', Value, 1) |
| 8 |
expr $max_wait_intervals = $max_wait + $max_wait; |
| 9 |
while ($excluded_count != 0) |
| 10 |
{ |
| 11 |
--sleep 0.5 |
| 12 |
--dec $max_wait_intervals |
| 13 |
if ($max_wait_intervals == 0) |
| 14 |
{ |
| 15 |
--echo Excluded count = $excluded_count when it should be 0 |
| 16 |
--die Timed out waiting for objects to no longer be excluded |
| 17 |
} |
| 18 |
--let $excluded_count = query_get_value(SHOW STATUS LIKE 'Ndb_metadata_excluded_count', Value, 1) |
| 19 |
} |