You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by fa...@apache.org on 2010/08/12 19:36:29 UTC
svn commit: r984871 - /incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
Author: fapeeler
Date: Thu Aug 12 17:36:29 2010
New Revision: 984871
URL: http://svn.apache.org/viewvc?rev=984871&view=rev
Log:
VCL-254
moved parens around to capture any time slot that has expired. previous statement would have skipped all entries with skip=1
Modified:
incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=984871&r1=984870&r2=984871&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Thu Aug 12 17:36:29 2010
@@ -7589,9 +7589,8 @@ sub get_management_node_blockrequests {
WHERE
blockRequest.managementnodeid = $managementnode_id AND
blockRequest.status = 'accepted' AND
- blockTimes.skip = '0' AND
- (blockTimes.start < (NOW() + INTERVAL 360 MINUTE ) OR
- blockTimes.end < NOW() )
+ (blockTimes.skip = '0' AND blockTimes.start < (NOW() + INTERVAL 360 MINUTE )) OR
+ blockTimes.end < NOW()
";
# Call the database select subroutine