- Timestamp:
- Dec 14, 2008, 12:03:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/neb_distrib_20081210/Nebulous/lib/Nebulous/Client.pm
r20094 r20986 1 1 # Copyright (c) 2004-2008 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1.62 2008-10-13 21:20:33 jhoblittExp $3 # $Id: Client.pm,v 1.62.6.1 2008-12-14 22:03:08 eugene Exp $ 4 4 5 5 package Nebulous::Client; … … 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"); … … 813 813 # a lock is implicitly removed when the last storage object is deleted 814 814 foreach my $uri ( @$locations ) { 815 $self->delete_instance( $uri) or return undef;815 $self->delete_instance($key, $uri) or return undef; 816 816 } 817 817 … … 944 944 my $self = shift; 945 945 946 my ($uri) = validate_pos(@_, 946 my ($key, $uri) = validate_pos(@_, 947 { 948 type => SCALAR, 949 }, 947 950 { 948 951 type => SCALAR, … … 961 964 $log->logdie( $@ ) if $@; 962 965 963 my $response = $self->{ 'server' }->delete_instance( $uri);966 my $response = $self->{ 'server' }->delete_instance($key, $uri); 964 967 if ( $response->fault ) { 965 968 $self->set_err($response->faultstring);
Note:
See TracChangeset
for help on using the changeset viewer.
