]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
Database locking: Perl: Increase retry count
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 15 Dec 2015 15:36:51 +0000 (15:36 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 15 Dec 2015 16:59:40 +0000 (16:59 +0000)
It seems to me that this deadlock might actually become fairly common
in some setups.  There is little harm in trying it for 100s rather
than 20s, and there maybe some benefit.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Osstest.pm

index a39ae42c0742ab0a5340bd6763a6886bd097716a..c77d96091972696d563cf3034980dbd84c2a2ce7 100644 (file)
@@ -282,7 +282,7 @@ sub db_retry ($$$;$$) {
     my ($pre,$body) =
         (ref $code eq 'ARRAY') ? @$code : (sub { }, $code);
 
-    my $retries= 20;
+    my $retries= 100;
     my $r;
     local $db_retry_stop;
     for (;;) {