Skip Menu |

This queue is for tickets about the CHI CPAN distribution.

Report information
The Basics
Id: 123179
Status: new
Priority: 0/
Queue: CHI

People
Owner: Nobody in particular
Requestors: KBrannen [...] efji.com
Cc:
AdminCc:

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



Subject: bug in CHI::Driver::FastMmap::get_keys
Date: Mon, 2 Oct 2017 21:38:37 +0000
To: "bug-CHI [...] rt.cpan.org" <bug-CHI [...] rt.cpan.org>
From: Kevin Brannen <KBrannen [...] efji.com>
The doc says you can pass a mode into get_keys() for CHI::Driver::FastMmap; however as delivered, you always get only an array of keys back. Looking at the code I see that the "mode" isn't passed thru, so the fix is simple: CHI/Driver/FastMmap.pm: 46 sub get_keys { 47 my ($self, $mode) = @_; 48 49 my @keys = $self->_contained_cache->get_keys($mode); 50 return @keys; 51 } The "$mode" var isn't there in the original code, but it fixes the problem. I'd also put in a pointer and possible fix in your test that didn't catch this, but since you did that with Test::Class, I'll skip that research. This is for version 0.60, which seems to still be the current version. Hopefully you are able to fix this soon. :) HTH, Kevin Brannen This e-mail transmission, and any documents, files or previous e-mail messages attached to it, may contain confidential information. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, distribution, review, copy or use of any of the information contained in or attached to this message is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify us by reply e-mail, and destroy the original transmission and its attachments without reading them or saving them to disk. Thank you.