Skip Menu |
 

This queue is for tickets about the CHI CPAN distribution.

Report information
The Basics
Id: 35819
Status: resolved
Priority: 0/
Queue: CHI

People
Owner: Nobody in particular
Requestors: astle [...] lokku.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.09



Subject: fastmmap driver does not properly handle cache_size param
Date: Mon, 12 May 2008 18:29:33 +0100
To: bug-CHI [...] rt.cpan.org
From: Mike Astle <astle [...] lokku.com>
I'm using CHI 0.07-1 on Debian (sarge) / GNU Linux (2.6.20). I can't seem to create a FastMmap cache that is bigger than the default size. I know little of Moose, but I think that the cache_size, page_size, and num_pages parameters to the FastMmap driver are getting dropped because they are not in the list of things that the driver 'has'. Suggested patch is below. Thanks for CHI! -mike ---- astle@dev-metrics:~/code/ext/lib/perl5/CHI/Driver$ diff -c FastMmap.pm FastMmap.pm.new *** FastMmap.pm 2008-05-12 18:26:35.000000000 +0100 --- FastMmap.pm.new 2008-05-12 18:27:35.000000000 +0100 *************** *** 13,18 **** --- 13,21 ---- has 'dir_create_mode' => ( is => 'ro', isa => 'Int', default => oct(775) ); has 'fm_cache' => ( is => 'ro' ); has 'share_file' => ( is => 'ro' ); + has 'cache_size' => ( is => 'ro' ); + has 'page_size' => ( is => 'ro' ); + has 'num_pages' => ( is => 'ro' ); has 'root_dir' => ( is => 'ro', isa => 'Str', ----
Subject: Re: [rt.cpan.org #35819] fastmmap driver does not properly handle cache_size param
Date: Wed, 14 May 2008 14:01:49 -0700
To: bug-CHI [...] rt.cpan.org
From: Jonathan Swartz <swartz [...] pobox.com>
Download (untitled) / with headers
text/plain 1.5k
That sounds right, I'll take a look. Thanks! On May 12, 2008, at 10:29 AM, Mike Astle via RT wrote: Show quoted text
> > Mon May 12 13:29:57 2008: Request 35819 was acted upon. > Transaction: Ticket created by astle@lokku.com > Queue: CHI > Subject: fastmmap driver does not properly handle cache_size param > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: astle@lokku.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=35819 > > > > I'm using CHI 0.07-1 on Debian (sarge) / GNU Linux (2.6.20). > > I can't seem to create a FastMmap cache that is bigger than the > default > size. > > I know little of Moose, but I think that the cache_size, page_size, > and > num_pages parameters to the FastMmap driver are getting dropped > because > they are not in the list of things that the driver 'has'. > > Suggested patch is below. > > Thanks for CHI! > > -mike > > ---- > > astle@dev-metrics:~/code/ext/lib/perl5/CHI/Driver$ diff -c FastMmap.pm > FastMmap.pm.new > *** FastMmap.pm 2008-05-12 18:26:35.000000000 +0100 > --- FastMmap.pm.new 2008-05-12 18:27:35.000000000 +0100 > *************** > *** 13,18 **** > --- 13,21 ---- > has 'dir_create_mode' => ( is => 'ro', isa => 'Int', default => > oct(775) ); > has 'fm_cache' => ( is => 'ro' ); > has 'share_file' => ( is => 'ro' ); > + has 'cache_size' => ( is => 'ro' ); > + has 'page_size' => ( is => 'ro' ); > + has 'num_pages' => ( is => 'ro' ); > has 'root_dir' => ( > is => 'ro', > isa => 'Str', > > ---- > > >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.