IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20988 for trunk/Nebulous/lib


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

revert to non-distributed version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/lib/Nebulous/Client.pm

    r20965 r20988  
    11# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Client.pm,v 1.63 2008-12-12 21:13:41 jhoblitt Exp $
     3# $Id: Client.pm,v 1.64 2008-12-14 22:48:35 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($key, "$uri")) {
     245        unless ($self->delete_instance("$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($key, "$uri");
     258        $self->delete_instance("$uri");
    259259        $log->logdie( "md5sum mismatch" );
    260260    }
     
    327327    }
    328328
    329     my $uri = $self->delete_instance($key, @$locations[0]);
     329    my $uri = $self->delete_instance( @$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($key, $uri) or return undef;
     815        $self->delete_instance( $uri ) or return undef;
    816816    }
    817817
     
    944944    my $self = shift;
    945945
    946     my ($key, $uri) = validate_pos(@_,
    947         {
    948             type => SCALAR,
    949         },
     946    my ($uri) = validate_pos(@_,
    950947        {
    951948            type => SCALAR,
     
    964961    $log->logdie( $@ ) if $@;
    965962
    966     my $response = $self->{ 'server' }->delete_instance($key, $uri);
     963    my $response = $self->{ 'server' }->delete_instance( $uri );
    967964    if ( $response->fault ) {
    968965        $self->set_err($response->faultstring);
Note: See TracChangeset for help on using the changeset viewer.