Changeset 374
- Timestamp:
- 08/24/06 23:05:26 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/server-newrepl/lib/MogileFS/Worker/Monitor.pm
r361 r374 45 45 46 46 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"; 49 50 50 51 # now try to get the data with a short timeout … … 60 61 if ($failed_after < 0.5) { 61 62 $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); 63 64 } else { 64 65 $failed_after = sprintf("%.02f", $failed_after);
