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']})";