You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2009/06/16 17:07:10 UTC

svn commit: r785247 - /incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php

Author: jfthomps
Date: Tue Jun 16 15:07:10 2009
New Revision: 785247

URL: http://svn.apache.org/viewvc?rev=785247&view=rev
Log:
VCL-78

modified XMLRPCprocessBlockTime - added a check to see if the call to simpleAddRequest failed

Modified:
    incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php

Modified: incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php?rev=785247&r1=785246&r2=785247&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php Tue Jun 16 15:07:10 2009
@@ -698,12 +698,14 @@
 		if($rc < 1)
 			continue;
 
-		$stagCnt++;
-
 		$compid = $requestInfo['computers'][0];
 		# ...use start of block time as end of reload reservation
 		$reqid = simpleAddRequest($compid, $rqdata['imageid'], $revisionid,
 		                          $stagstart, $rqdata['start'], 19, $vclreloadid);
+		if($reqid == 0)
+			continue;
+
+		$stagCnt++;
 		$allocated++;
 		$blockCompVals[] = "($blockTimesid, $compid, {$rqdata['imageid']})";