IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2008, 11:58:03 AM (18 years ago)
Author:
jhoblitt
Message:

replicate to 'any' volume
attempt to remove storage object on failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r19655 r19742  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.34 2008-09-23 02:27:29 jhoblitt Exp $
     5# $Id: dsget,v 1.35 2008-09-24 21:58:03 jhoblitt Exp $
    66
    77use strict;
     
    155155# always be a rename operation instead of a copy and delete.
    156156
     157my $neb;
    157158if ($nebulous) {
    158159    require Nebulous::Client;
     
    161162    import File::Copy;
    162163
    163     my $neb = Nebulous::Client->new(
     164    $neb = Nebulous::Client->new(
    164165        proxy   => $server,
    165166    );
     
    199200    if (defined $copies and $copies > 1) {
    200201        foreach (1 .. ($copies - 1)) {
    201             $neb->replicate($filename, undef)
     202            $neb->replicate($filename, 'any')
    202203                or die "failed to replicate $filename failed: $!";
    203204        }
     
    212213DESTROY {
    213214    unlink $tmpfilename if -e $tmpfilename;
     215    if ($nebulous and $neb->stat($filename)) {
     216        $neb->delete($filename)
     217            or die "Nebulous can't delete key $filename";
     218    }
    214219}
    215220
Note: See TracChangeset for help on using the changeset viewer.