Move the per-host code all into the same per-host loop. One effect is
to transpose the db_retry and host loops for mainquery.
No functional change.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
computeflightsrange();
});
-foreach (keys %hosts) {
- read_existing_logs($_);
-}
-
-db_retry($dbh_tests, [], sub {
- foreach my $host (sort keys %hosts) {
- mainquery($host);
- }
-});
-
foreach my $host (sort keys %hosts) {
+ read_existing_logs($host);
db_retry($dbh_tests, [], sub {
+ mainquery($host);
reporthost $host;
});
}