[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 2/2] mg-hosts: Call db_readonly_report inside, not outside, db_retry



Newer postgresql prints:
  WARNING:  SET TRANSACTION can only be used in transaction blocks
and it is right.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 mg-force-push | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mg-force-push b/mg-force-push
index 09c1894..1066a30 100755
--- a/mg-force-push
+++ b/mg-force-push
@@ -62,8 +62,8 @@ END
     my %revuses;
     printf "checking revisions used in %s...\n", $flight;
 
-    db_readonly_report();
     db_retry($dbh_tests, [], sub {
+        db_readonly_report();
         $flt_q->execute($flight);
         my $flt_row = $flt_q->fetchrow_hashref();
         $flt_row->{blessing} eq 'real' or die "$flt_row->{blessing} ?";
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.