Commit 502b028b authored by Leigh B Stoller's avatar Leigh B Stoller

Kill debugging reservation check on extension, no need for that anymore.

parent 48246893
......@@ -1802,24 +1802,6 @@ sub ExtendInternal($$$$$)
}
my $new_expires = $slice->ExpirationGMT();
#
# Do a reservation check first. We do not care if it fails (yet),
# just keep going. We want to report results back to the web interface.
#
if (defined($webtask)) {
$webtask->CheckReservationResult(0);
$webtask->CheckReservationMessage("");
}
if (CheckReservationInternal($slice, $new_expires, \$errmsg)) {
if ($debug) {
print "Reservation denied! $errmsg\n";
}
if (defined($webtask)) {
$webtask->CheckReservationMessage($errmsg);
$webtask->CheckReservationResult(1);
}
}
my $coderef = sub {
my ($sliver) = @_;
my $webtask = $sliver->webtask();
......@@ -1947,7 +1929,6 @@ sub DoCheckReservation()
sub CheckReservationInternal($$$)
{
my ($slice, $expiration, $perrmsg) = @_;
my $rescheck = "$TB/etc/rescheck.txt";
my $errcode = -1;
my $errmsg;
......@@ -2008,16 +1989,8 @@ sub CheckReservationInternal($$$)
$agg->webtask()->Refresh();
$errmsg = $agg->webtask()->output();
$errcode = $agg->webtask()->exitcode();
if ($errcode == GENIRESPONSE_REFUSED) {
system("/bin/echo 'DENIED: $slice, $expiration, $agg, $errmsg'".
" >> $rescheck");
}
goto bad;
}
else {
system("/bin/echo 'ACCEPT: $slice, $expiration, $agg' ".
" >> $rescheck");
}
}
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment