This eliminates the race with cs-bisection-step (and other
flight-construction tools which might reuse previous flights, provided
that they also do not pass previous flight numbers from hand to hand
with the db unlocked).
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
return 1;
}
-for (;;) {
- iteration_continue()
- or last;
-}
+db_retry($dbh_tests,[qw(flights)], sub {
+ @flights = ();
+ for (;;) {
+ iteration_continue()
+ or last;
+ }
+});
printf "ok.\n";
exit 0;