Changeset 4638 for trunk/Nebulous/lib
- Timestamp:
- Jul 27, 2005, 5:48:41 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/lib/Nebulous/Client.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/lib/Nebulous/Client.pm
r4633 r4638 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1.1 7 2005-07-28 01:40:26jhoblitt Exp $3 # $Id: Client.pm,v 1.18 2005-07-28 03:48:41 jhoblitt Exp $ 4 4 5 5 package Nebulous::Client; … … 161 161 } 162 162 163 my $fh = $self->open( $key, ' write' );163 my $fh = $self->open( $key, 'read' ); 164 164 unless ( $fh ) { 165 165 $log->debug( "can't open $key" ); … … 435 435 436 436 if ( $type eq 'write' ) { 437 my $num_instances = scalar @$locations; 438 439 if ( $num_instances > 1 ) { 440 $log->warn( "write not allowed with multiple instances" ); 441 $log->debug( "leaving" ); 442 return undef; 443 } 444 437 445 eval { 438 446 $fh = _get_filehandle( $path, '+<' );
Note:
See TracChangeset
for help on using the changeset viewer.
