Changeset 371

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

request writable devices only

Files:

Legend:

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

    r364 r371  
    174174    while (scalar(@dests) < ($multi ? 3 : 1)) { 
    175175        my $devid = Mgd::find_deviceid( 
    176             random => 1, 
    177             weight_by_free => 1, 
    178             not_on_hosts => \@hosts
    179         ); 
    180  
     176                                       random          => 1, 
     177                                       must_be_writable => 1, 
     178                                       weight_by_free   => 1
     179                                       not_on_hosts     => \@hosts, 
     180                                       ); 
    181181        last unless defined $devid; 
    182182