IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2008, 10:04:46 AM (18 years ago)
Author:
jhoblitt
Message:

argh - set xattrs AFTER creating the object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r17770 r17774  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.29 2008-05-22 03:39:28 jhoblitt Exp $
     5# $Id: dsget,v 1.30 2008-05-22 20:04:46 jhoblitt Exp $
    66
    77use strict;
     
    163163            or die "Nebulous can't delete key $filename";
    164164    }
     165
     166    my $fh = $neb->open_create( $filename, $volume )
     167        or die "Nebulous can't create key $filename";
     168
    165169    $neb->setxattr($filename, "user.copies", 2, "create")
    166170        or die "Nebulous can't set xattr on key $filename";
    167 
    168     my $fh = $neb->open_create( $filename, $volume )
    169         or die "Nebulous can't create key $filename";
    170171
    171172    open(my $src_fh, $tmpfilename) or die "can't open file $tmpfilename: $!";
Note: See TracChangeset for help on using the changeset viewer.