Changeset 1140

Show
Ignore:
Timestamp:
02/04/08 05:40:50 (10 months ago)
Author:
hachi
Message:

r1313@miyako: hachi | 2008-02-03 18:16:13 -0800
The 'pathcount' arg which exists in the server to allow us to requres more than the default (2) paths from mogilefsd was not being passed by the mogilefs client code, here's the fix.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/api/perl/MogileFS-Client/lib/MogileFS/Client.pm

    r1113 r1140  
    537537    # handle parameters, if any 
    538538    my ($noverify, $zone); 
     539 
     540    my %extra_args; 
     541 
    539542    if (ref $opts) { 
    540543        $noverify = 1 if $opts->{noverify}; 
     
    542545    } else { 
    543546        $noverify = 1 if $opts; 
     547    } 
     548 
     549    if (my $pathcount = delete $opts->{pathcount}) { 
     550        $extra_args{pathcount} = $pathcount; 
    544551    } 
    545552 
     
    552559            noverify => $noverify ? 1 : 0, 
    553560            zone   => $zone, 
     561            %extra_args, 
    554562        }) or return (); 
    555563