Changeset 23934 for trunk/Nebulous/lib
- Timestamp:
- Apr 20, 2009, 11:23:23 AM (17 years ago)
- Location:
- trunk/Nebulous
- Files:
-
- 1 deleted
- 4 edited
-
. (modified) (1 prop)
-
lib (modified) (1 prop)
-
lib/Nebulous/Client.pm (modified) (7 diffs)
-
lib/Nebulous/Server (deleted)
-
lib/Nebulous/Util.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/eam_branches/eam_branch_20090303/Nebulous 23158-23228 /branches/jhoblitt/Nebulous 2785-12604 /branches/pap/Nebulous 23511-23685,23690-23739
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/Nebulous/lib
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/neb_distrib_20081210/Nebulous/lib merged eligible /branches/eam_branches/eam_branch_20090303/Nebulous/lib 23158-23228 /branches/jhoblitt/Nebulous/lib 2785-12604 /branches/pap/Nebulous/lib 23511-23685,23690-23739
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/Nebulous/lib/Nebulous/Client.pm
r20988 r23934 243 243 # if the copy failed we now have a zero length instances floating 244 244 # around that must be removed 245 unless ($self->delete_instance( "$uri")) {245 unless ($self->delete_instance($key, "$uri")) { 246 246 $log->logdie( "can not copy instance $uri AND FAILED TO CLEANUP EMPTY INSTANCE" ); 247 247 } … … 256 256 257 257 unless ($src_md5 eq $dst_md5) { 258 $self->delete_instance( "$uri");258 $self->delete_instance($key, "$uri"); 259 259 $log->logdie( "md5sum mismatch" ); 260 260 } … … 327 327 } 328 328 329 my $uri = $self->delete_instance( @$locations[0]);329 my $uri = $self->delete_instance($key, @$locations[0]); 330 330 331 331 $log->debug("leaving"); … … 615 615 return; 616 616 } 617 if ($response->faultstring =~ /does not match any key or directory/) { 618 $log->debug( "leaving" ); 619 return; 620 } 617 621 618 622 $log->logdie("unhandled fault - ", $self->err); … … 813 817 # a lock is implicitly removed when the last storage object is deleted 814 818 foreach my $uri ( @$locations ) { 815 $self->delete_instance( $uri) or return undef;819 $self->delete_instance($key, $uri) or return undef; 816 820 } 817 821 … … 944 948 my $self = shift; 945 949 946 my ($uri) = validate_pos(@_, 950 my ($key, $uri) = validate_pos(@_, 951 { 952 type => SCALAR, 953 }, 947 954 { 948 955 type => SCALAR, … … 961 968 $log->logdie( $@ ) if $@; 962 969 963 my $response = $self->{ 'server' }->delete_instance( $uri);970 my $response = $self->{ 'server' }->delete_instance($key, $uri); 964 971 if ( $response->fault ) { 965 972 $self->set_err($response->faultstring); -
trunk/Nebulous/lib/Nebulous/Util.pm
r18463 r23934 45 45 46 46 47 # XXX replace the unlink with a 'move to trash' operation 48 # empty the trash with a daemon on the NSF server 47 49 sub _nuke_file { 48 50 my $path = shift;
Note:
See TracChangeset
for help on using the changeset viewer.
