Changeset 808

Show
Ignore:
Timestamp:
04/12/07 19:29:46 (3 years ago)
Author:
hachi
Message:

Caller expects this hook to die if a failure state is reached, not return 0.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/MogileFS/Plugin/FilePaths.pm

    r806 r808  
    3838        my $fullpath = delete $args->{key}; 
    3939        my ($path, $filename) = _parse_path($fullpath); 
    40         return 0 unless defined($path) && length($path) && defined($filename) && length($filename); 
     40        die "Filename is not a valid absolute path." 
     41            unless defined($path) && length($path) && defined($filename) && length($filename); 
    4142        return 1; 
    4243    });