IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 12, 2008, 5:55:08 PM (18 years ago)
Author:
jhoblitt
Message:

change Nebulous::Server::stat() to not die when passed a non-existant key

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r17620 r17650  
    11# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.66 2008-05-10 01:15:13 jhoblitt Exp $
     3# $Id: Server.pm,v 1.67 2008-05-13 03:55:08 jhoblitt Exp $
    44
    55package Nebulous::Server;
     
    10761076        {
    10771077            type        => SCALAR,
    1078             callbacks   => {
    1079                 'is valid object key' => sub { $self->_is_valid_object_key($_[0]) },
    1080             },
    10811078        },
    10821079    );
     
    10871084
    10881085    $log->debug("entered - @_");
     1086
     1087    # does this key exist?
     1088    return unless ($self->_is_valid_object_key($key));
    10891089
    10901090    # ignore volume
Note: See TracChangeset for help on using the changeset viewer.