[Koha-bugs] [Bug 13431] Shared FastMmap file causes issues
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Dec 19 11:42:27 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13431
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at biblibre.co
| |m
--- Comment #22 from Jonathan Druart <jonathan.druart at biblibre.com> ---
I don't know if it is relevant, but maybe should we provide a quick fix like:
if ( can_load( modules => { 'Cache::FastMmap' => undef } ) ) {
- _initialize_fastmmap($self);
- if ( $self->{'default_type'} eq 'fastmmap'
- && defined( $self->{'fastmmap_cache'} ) )
- {
- $self->{'cache'} = $self->{'fastmmap_cache'};
+ eval {
+ _initialize_fastmmap($self);
+ if ( $self->{'default_type'} eq 'fastmmap'
+ && defined( $self->{'fastmmap_cache'} ) )
+ {
+ $self->{'cache'} = $self->{'fastmmap_cache'};
+ }
+ };
+ if ( $@ ) {
+ warn "Cannot initialize FastMmap: $@";
}
}
In any case the application should crash if the cache is not correctly
initialized.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list