On Thu, 2015-12-17 at 17:06 +0000, Ian Jackson wrote: > If something other than the DB statements inside need_retry throws an > exception, ->err will normally be undef (because > $dbh_tests->begin_work will clear it, if nothing else). > > Signed-off-by: Ian Jackson <ian.jack...@eu.citrix.com>
Acked-by: Ian Campbell <ian.campb...@citrix.com> > --- > Osstest/JobDB/Executive.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Osstest/JobDB/Executive.pm b/Osstest/JobDB/Executive.pm > index 6fb77a4..c0af21c 100644 > --- a/Osstest/JobDB/Executive.pm > +++ b/Osstest/JobDB/Executive.pm > @@ -50,7 +50,7 @@ sub begin_work ($$$) { #method > sub need_retry ($$$) { > my ($jd, $dbh,$committing) = @_; > return > - $dbh_tests->err()==7 && > + ($dbh_tests->err() // 0)==7 && > ($dbh_tests->state =~ m/^40P01/); # DEADLOCK DETECTED > } > _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel