]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
Executive: properly rewind allocations in all cases of queue-server trouble; also...
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 Oct 2013 14:35:52 +0000 (15:35 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 17 Oct 2013 14:35:52 +0000 (15:35 +0100)
Osstest/Executive.pm

index 9627036c5376673fef10aa5c371a03633c867bc6..ac7b7341aa6bc4110350ab93c73469c7ffa9ed53 100644 (file)
@@ -474,8 +474,6 @@ sub alloc_resources {
                print $qserv $jbookings or die $!;
                $_= <$qserv>; defined && m/^OK book-resources\s/ or die "$_ ?";
 
-                $bookinglist= undef; # no need to undo these then
-
                logm("resource allocation: we are in the plan.");
            }
 
@@ -507,7 +505,8 @@ sub alloc_resources {
                         my @reskey= ((split / /, $book->{Reso}, 2),
                                      $alloc->{Shareix});
                         $reskey[0]= "share-$reskey[0]" if $reskey[2];
-                        logm("resource allocation: unwinding @reskey");
+                        logm("resource allocation: unwinding ".
+                            join '/', @reskey);
                         my $undone= $dbh_tests->do(<<END,{},$freetask,@reskey);
                             UPDATE resources
                                SET owntaskid=(SELECT taskid FROM tasks