IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17690


Ignore:
Timestamp:
May 14, 2008, 4:50:03 PM (18 years ago)
Author:
jhoblitt
Message:

cleanup error handling in Nebulous::Server::stat_object()/find_objects()

Location:
trunk/Nebulous-Server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/Changes

    r17687 r17690  
    22
    330.10
     4    - cleanup error handling in Nebulous::Server::stat_object()/find_objects()
    45    - update Nebulous::Server::lock_object()/unlock_object() fault strings
    56    - cleanup database error handling: make sure queries are ->finished before
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r17687 r17690  
    11# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.69 2008-05-15 00:36:41 jhoblitt Exp $
     3# $Id: Server.pm,v 1.70 2008-05-15 02:50:03 jhoblitt Exp $
    44
    55package Nebulous::Server;
     
    860860    unless ($pattern) {
    861861        $log->debug( "leaving" );
    862         return [];
     862        $log->logdie("no keys found");
    863863    }
    864864
     
    880880    $log->logdie("database error: $@") if $@;
    881881
    882     $log->debug( "no keys found" ) unless ( scalar @keys );
     882    $log->logdie("no keys found") unless ( scalar @keys );
    883883
    884884    $log->debug( "leaving" );
     
    10581058        {
    10591059            type        => SCALAR,
     1060            callbacks   => {
     1061                'is valid object key' => sub { $self->_is_valid_object_key($_[0]) },
     1062            },
    10601063        },
    10611064    );
     
    10661069
    10671070    $log->debug("entered - @_");
    1068 
    1069     # does this key exist?
    1070     return unless ($self->_is_valid_object_key($key));
    10711071
    10721072    # ignore volume
     
    10791079
    10801080        unless ($rows == 1) {
    1081             $log->debug("no storage object found");
     1081            $log->logdie("no storage object found");
    10821082        }
    10831083
Note: See TracChangeset for help on using the changeset viewer.