Author: arkurth
Date: Thu Jan 22 13:58:30 2009
New Revision: 736815
URL: http://svn.apache.org/viewvc?rev=736815&view=rev
Log:
VCL-26
Fixed a bug in DataStructure.pm::get_reservation_remote_ip where it was
returning undefined instead of 0 if the remoteIP column was set to null.
Modified:
incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm
Modified: incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm?rev=736815&r1=736814&r2=736815&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/DataStructure.pm Thu Jan 22
13:58:30 2009
@@ -910,10 +910,10 @@
# It contains a hash
my $remote_ip;
- # Return undefined if the column wasn't found
+ # Return 0 if the column isn't set
if (!defined $selected_rows[0]{remoteIP}) {
- notify($ERRORS{'WARNING'}, 0, "failed to get reservation remote
IP, remoteIP value is undefined");
- return;
+ notify($ERRORS{'OK'}, 0, "reservation remote IP is not
defined");
+ return 0;
}
# Make sure we return 0 if remote IP is blank