IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17765 for trunk/Nebulous/lib


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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.