[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [OSSTEST PATCH 15/27] cr-ensure-disk-space: Take the flights db lock
On Wed, 2015-09-16 at 14:35 +0100, Ian Jackson wrote: > 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@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> > --- > cr-ensure-disk-space | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/cr-ensure-disk-space b/cr-ensure-disk-space > index 8c5a708..138f3f4 100755 > --- a/cr-ensure-disk-space > +++ b/cr-ensure-disk-space > @@ -145,10 +145,13 @@ END > 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; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |