Changeset 19742
- Timestamp:
- Sep 24, 2008, 11:58:03 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/DataStore/scripts/dsget (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/scripts/dsget
r19655 r19742 3 3 # Copyright (C) 2006-2008 Joshua Hoblitt 4 4 # 5 # $Id: dsget,v 1.3 4 2008-09-23 02:27:29jhoblitt Exp $5 # $Id: dsget,v 1.35 2008-09-24 21:58:03 jhoblitt Exp $ 6 6 7 7 use strict; … … 155 155 # always be a rename operation instead of a copy and delete. 156 156 157 my $neb; 157 158 if ($nebulous) { 158 159 require Nebulous::Client; … … 161 162 import File::Copy; 162 163 163 my$neb = Nebulous::Client->new(164 $neb = Nebulous::Client->new( 164 165 proxy => $server, 165 166 ); … … 199 200 if (defined $copies and $copies > 1) { 200 201 foreach (1 .. ($copies - 1)) { 201 $neb->replicate($filename, undef)202 $neb->replicate($filename, 'any') 202 203 or die "failed to replicate $filename failed: $!"; 203 204 } … … 212 213 DESTROY { 213 214 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 } 214 219 } 215 220
Note:
See TracChangeset
for help on using the changeset viewer.
