IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23934 for trunk/Nebulous/lib


Ignore:
Timestamp:
Apr 20, 2009, 11:23:23 AM (17 years ago)
Author:
jhoblitt
Message:

merge neb_distrib_20081210

Location:
trunk/Nebulous
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous

    • Property svn:mergeinfo set to (toggle deleted branches)
      /branches/eam_branches/eam_branch_20090303/Nebulous23158-23228
      /branches/jhoblitt/Nebulous2785-12604
      /branches/pap/Nebulous23511-23685,​23690-23739
  • trunk/Nebulous/lib

  • trunk/Nebulous/lib/Nebulous/Client.pm

    r20988 r23934  
    243243        # if the copy failed we now have a zero length instances floating
    244244        # around that must be removed
    245         unless ($self->delete_instance("$uri")) {
     245        unless ($self->delete_instance($key, "$uri")) {
    246246            $log->logdie( "can not copy instance $uri AND FAILED TO CLEANUP EMPTY INSTANCE" );
    247247        }
     
    256256
    257257    unless ($src_md5 eq $dst_md5) {
    258         $self->delete_instance("$uri");
     258        $self->delete_instance($key, "$uri");
    259259        $log->logdie( "md5sum mismatch" );
    260260    }
     
    327327    }
    328328
    329     my $uri = $self->delete_instance( @$locations[0] );
     329    my $uri = $self->delete_instance($key, @$locations[0]);
    330330
    331331    $log->debug("leaving");
     
    615615            return;
    616616        }
     617        if ($response->faultstring =~ /does not match any key or directory/) {
     618            $log->debug( "leaving" );
     619            return;
     620        }
    617621
    618622        $log->logdie("unhandled fault - ", $self->err);
     
    813817    # a lock is implicitly removed when the last storage object is deleted
    814818    foreach my $uri ( @$locations ) {
    815         $self->delete_instance( $uri ) or return undef;
     819        $self->delete_instance($key, $uri) or return undef;
    816820    }
    817821
     
    944948    my $self = shift;
    945949
    946     my ($uri) = validate_pos(@_,
     950    my ($key, $uri) = validate_pos(@_,
     951        {
     952            type => SCALAR,
     953        },
    947954        {
    948955            type => SCALAR,
     
    961968    $log->logdie( $@ ) if $@;
    962969
    963     my $response = $self->{ 'server' }->delete_instance( $uri );
     970    my $response = $self->{ 'server' }->delete_instance($key, $uri);
    964971    if ( $response->fault ) {
    965972        $self->set_err($response->faultstring);
  • trunk/Nebulous/lib/Nebulous/Util.pm

    r18463 r23934  
    4545
    4646
     47# XXX replace the unlink with a 'move to trash' operation
     48# empty the trash with a daemon on the NSF server
    4749sub _nuke_file {
    4850    my $path = shift;
Note: See TracChangeset for help on using the changeset viewer.