Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 5393
Status: resolved
Priority: 0/
Queue: BerkeleyDB

People
Owner: pmqs [...] cpan.org
Requestors: william [...] knowmad.com
Cc:
AdminCc:

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



Subject: cds_lock() and locked() not available in BerkeleyDB::Hash
Hi Paul, I'm trying to do some concurrency testing of BerkeleyDB and am getting the following unexpected error: Can't locate object method "locked" via package "BerkeleyDB::Hash" at ./db_test_bdb4-nd.pl line 34. I get a similar error if I try to access cds_lock(). The docs state that both of these functions are available to all of the modules. I am using the DB_INIT_LOCK flag when opening the database as follows: $bdb4_hash = BerkeleyDB::Hash->new ( -Filename => "bdb4.hash.test", -Flags => (DB_CREATE | DB_INIT_LOCK) ) or die "Cannot open file bdb4.hash.test: $! $BerkeleyDB::Error\n" ; Is this a bug? Also, many of the sections dealing with concurrent access are undocumented. My initial tests seem to indicate that BerkeleyDB drops records that it cannot insert due to no access to db. Can you point me to some examples or other documentation? Thanks, William
From: mose [...] ns.cune.edu
[guest - Thu Feb 19 21:11:44 2004]: Show quoted text
> I get a similar error if I try to access cds_lock(). The docs state > that both of these functions are available to all of the modules. I > am using the DB_INIT_LOCK flag when opening the database as > follows:
From the "Programmer's Tutorial and Reference Guide" included with the Berkeley database software, section "Berkeley DB Concurrent Data Store applications" "To create Berkeley DB Concurrent Data Store applications, ... you must specify the DB_INIT_CDB and DB_INIT_MPOOL flags to that method. It is an error to specify any of the other ... subsystem or recovery configuration flags, for example, DB_INIT_LOCK..."