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

[Xen-devel] [OSSTEST PATCH 01/17] db_retry: Honour new OSSTEST_DB_ALWAYS_ABORT variable



This is useful for debugging.

Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 Osstest.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Osstest.pm b/Osstest.pm
index 2263786..3377ea3 100644
--- a/Osstest.pm
+++ b/Osstest.pm
@@ -330,6 +330,8 @@ sub db_retry ($$$;$$) {
                last if $db_retry_stop eq 'abort';
                next;
            }
+            die 'OSSTEST_DB_ALWAYS_ABORT set'
+                if $ENV{'OSSTEST_DB_ALWAYS_ABORT'};
            $committing = 1;
            $dbh->commit();
        };
-- 
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®.