Changeset 374

Show
Ignore:
Timestamp:
08/24/06 23:05:26 (2 years ago)
Author:
bradfitz
Message:

we have to do PUTs to the real port, not the GET port.

so name the variables better.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/server-newrepl/lib/MogileFS/Worker/Monitor.pm

    r361 r374  
    4545 
    4646            my $host = $Mgd::cache_host{$dev->{hostid}}; 
    47             my $port = $host->{http_get_port} || $host->{http_port}; 
    48             my $url = "http://$host->{hostip}:$port/dev$dev->{devid}/usage"; 
     47            my $port = $host->{http_port}; 
     48            my $get_port = $host->{http_get_port} || $port; 
     49            my $url = "http://$host->{hostip}:$get_port/dev$dev->{devid}/usage"; 
    4950 
    5051            # now try to get the data with a short timeout 
     
    6061                if ($failed_after < 0.5) { 
    6162                    $self->broadcast_device_unreachable($dev->{devid}); 
    62                     error("Port $port not listening on otherwise-alive machine $host->{hostip}?  Error was: " . $response->status_line); 
     63                    error("Port $get_port not listening on otherwise-alive machine $host->{hostip}?  Error was: " . $response->status_line); 
    6364                } else { 
    6465                    $failed_after = sprintf("%.02f", $failed_after);