IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17765


Ignore:
Timestamp:
May 21, 2008, 3:39:55 PM (18 years ago)
Author:
jhoblitt
Message:

change replicate() to report when it fails to cleanup (after a failure)

Location:
trunk/Nebulous
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/Changes

    r17763 r17765  
    22
    330.09
     4    - change replicate() to report when it fails to cleanup (after a failure)
    45    - add neb-xattr util
    56    - change Nebulous::Client->find() to handle a volume param and to fall back
  • trunk/Nebulous/lib/Nebulous/Client.pm

    r17763 r17765  
    11# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Client.pm,v 1.53 2008-05-21 20:46:18 jhoblitt Exp $
     3# $Id: Client.pm,v 1.54 2008-05-22 01:39:41 jhoblitt Exp $
    44
    55package Nebulous::Client;
     
    245245    my $success = File::Copy::copy( $fh, $new_fh );
    246246    unless ($success) {
    247         $self->delete_instance("$uri");
     247        # if the copy failed we now have a zero length instances floating
     248        # around that must be removed
     249        unless ($self->delete_instance("$uri")) {
     250            $log->logdie( "can not copy instance $uri AND FAILED TO CLEANUP EMPTY INSTANCE" );
     251        }
    248252        $log->logdie( "can not copy instance $uri" );
    249253    }
Note: See TracChangeset for help on using the changeset viewer.