Changeset 1151

Show
Ignore:
Timestamp:
02/29/08 00:20:19 (9 months ago)
Author:
hachi
Message:

Silence warnings about undefined string comparison.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/lib/MogileFS/ReplicationPolicy/MultipleNetworks.pm

    r1150 r1151  
    125125    my @ideal         = grep { ! $skip_host{$_->hostid} } @all_dests; 
    126126    # wrong network is less desparate than wrong host 
    127     my @network_desp  = grep {   $skip_host{$_->hostid} eq AVOIDNETWORK } @all_dests; 
     127    my @network_desp  = grep {   $skip_host{$_->hostid} && 
     128                                 $skip_host{$_->hostid} eq AVOIDNETWORK } @all_dests; 
    128129    my @host_desp     = grep {   $skip_host{$_->hostid} && 
    129130                                 $skip_host{$_->hostid} ne AVOIDNETWORK } @all_dests;