IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 14, 2008, 12:03:08 PM (18 years ago)
Author:
eugene
Message:

putting modifications by Josh for distributed Nebulous on a branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/neb_distrib_20081210/Nebulous/lib/Nebulous/Client.pm

    r20094 r20986  
    11# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Client.pm,v 1.62 2008-10-13 21:20:33 jhoblitt Exp $
     3# $Id: Client.pm,v 1.62.6.1 2008-12-14 22:03:08 eugene Exp $
    44
    55package Nebulous::Client;
     
    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");
     
    813813    # a lock is implicitly removed when the last storage object is deleted
    814814    foreach my $uri ( @$locations ) {
    815         $self->delete_instance( $uri ) or return undef;
     815        $self->delete_instance($key, $uri) or return undef;
    816816    }
    817817
     
    944944    my $self = shift;
    945945
    946     my ($uri) = validate_pos(@_,
     946    my ($key, $uri) = validate_pos(@_,
     947        {
     948            type => SCALAR,
     949        },
    947950        {
    948951            type => SCALAR,
     
    961964    $log->logdie( $@ ) if $@;
    962965
    963     my $response = $self->{ 'server' }->delete_instance( $uri );
     966    my $response = $self->{ 'server' }->delete_instance($key, $uri);
    964967    if ( $response->fault ) {
    965968        $self->set_err($response->faultstring);
Note: See TracChangeset for help on using the changeset viewer.