Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the MongoDB CPAN distribution.

Maintainer(s)' notes

Please don't report bugs here. Please use the MongoDB Perl driver issue tracker instead.

Report information
The Basics
Id: 62636
Status: resolved
Priority: 0/
Queue: MongoDB

People
Owner: Nobody in particular
Requestors: lee.johnson [...] netbanx.com
Cc:
AdminCc:

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



Subject: MongoDB::Collection ensure_index pod typo
Date: Tue, 2 Nov 2010 08:50:29 +0000
To: <bug-MongoDB [...] rt.cpan.org>
From: Lee Johnson <lee.johnson [...] netbanx.com>
Perl: 5.10.1 MongoDB: 0.39 The MongoDB::Collection pod states: "If the safe option is not set, ensure_index will always return 1." I believe this is no longer correct, or is a typo, as recent updates include specific tests to check nothing is returned from ensure_index (collection.t): my $ok = $coll->ensure_index($indexes); ok(!defined $ok); Ta.
Thanks, fix committed (will be in 0.40). On Tue Nov 02 04:50:53 2010, lee.johnson@netbanx.com wrote: Show quoted text
> Perl: 5.10.1 > MongoDB: 0.39 > > The MongoDB::Collection pod states: > > "If the safe option is not set, ensure_index will always return 1." > > I believe this is no longer correct, or is a typo, as recent updates > include specific tests to check nothing is returned from ensure_index > (collection.t): > > my $ok = $coll->ensure_index($indexes); > ok(!defined $ok); > > Ta. > >