Changeset 13228
- Timestamp:
- May 3, 2007, 5:10:29 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
Nebulous-Server/Changes (modified) (1 diff)
-
Nebulous/Changes (modified) (1 diff)
-
Nebulous/lib/Nebulous/Client.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r13208 r13228 2 2 3 3 0.05 4 - fix a nasty logic bug in Nebulous::Client->replicate() 4 5 - break 1:1 relationship between key names and on disk file names 5 6 - overhaul Nebulous::Client->cull() -
trunk/Nebulous/Changes
r13208 r13228 2 2 3 3 0.05 4 - fix a nasty logic bug in Nebulous::Client->replicate() 4 5 - break 1:1 relationship between key names and on disk file names 5 6 - overhaul Nebulous::Client->cull() -
trunk/Nebulous/lib/Nebulous/Client.pm
r13180 r13228 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1.3 0 2007-05-03 03:21:28jhoblitt Exp $3 # $Id: Client.pm,v 1.31 2007-05-04 03:10:17 jhoblitt Exp $ 4 4 5 5 package Nebulous::Client; … … 183 183 $log->debug( "entered - @_" ); 184 184 185 # We have to open the instance that weren't going to copy from first. If 186 # we don't do this, it's possible that open will find & open the new 187 # instance that we're in the process of creating 188 my $fh = $self->open( $key, 'read' ); 189 unless ( $fh ) { 190 $log->debug( "can't open $key" ); 191 $log->debug( "leaving" ); 192 193 return undef; 194 } 195 196 # ask the server for a new instance attached to our key 185 197 my $response = $self->{ 'server' }->replicate_object( $key, @params ); 186 198 if ( $response->fault ) { … … 192 204 193 205 my $res = $response->result; 194 $log->debug( "server respon e $res" );206 $log->debug( "server response $res" ); 195 207 196 208 my $uri = URI->new($res); 197 209 my $filename = $uri->file; 198 210 $log->debug( "local filename is $filename" ); 199 200 my $fh = $self->open( $key, 'read' );201 unless ( $fh ) {202 $log->debug( "can't open $key" );203 $log->debug( "leaving" );204 205 return undef;206 }207 211 208 212 my $new_fh;
Note:
See TracChangeset
for help on using the changeset viewer.
