Changeset 1149
- Timestamp:
- 02/14/08 11:14:54 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/api/perl/MogileFS-Client/lib/MogileFS/Client.pm
r1140 r1149 537 537 # handle parameters, if any 538 538 my ($noverify, $zone); 539 539 unless (ref $opts) { 540 $opts = { noverify => $opts }; 541 } 540 542 my %extra_args; 541 543 542 if (ref $opts) { 543 $noverify = 1 if $opts->{noverify}; 544 $zone = $opts->{zone} || undef; 545 } else { 546 $noverify = 1 if $opts; 547 } 544 $noverify = 1 if $opts->{noverify}; 545 $zone = $opts->{zone}; 548 546 549 547 if (my $pathcount = delete $opts->{pathcount}) { 550 $extra_args{pathcount} = $pathcount;548 $extra_args{pathcount} = $pathcount; 551 549 } 552 550
