Skip Menu |

This queue is for tickets about the BerkeleyDB CPAN distribution.

Report information
The Basics
Id: 49907
Status: open
Priority: 0/
Queue: BerkeleyDB

People
Owner: Nobody in particular
Requestors: mark [...] hindley.org.uk
Cc:
AdminCc:

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



Subject: log_set_config() for DB_LOG_IN_MEMORY: db4.7
Date: Tue, 22 Sep 2009 14:07:55 +0100
To: bug-BerkeleyDB [...] rt.cpan.org
From: Mark Hindley <mark [...] hindley.org.uk>
Hi, I have just been porting Debian's apt-cacher to db4.7 using BerkeleyDB 0.39. However I am unable to use log_set_config() to set DB_LOG_IN MEMORY as I get this error. DB_ENV->log_set_config: DB_LOG_IN_MEMORY: method not permitted after handle's open method Under db4.6, when recovering the environment, I set -SetFlags => DB_LOG_INMEMORY in the BerkeleyDB::Env creation array. It works fine, and saves leaving the 10M logfile hanging around on the filesystem. Under 4.7, DB_LOG_IN_MEMORY has to be set using log_set_config(), but this can only be called on the returned BerkeleyDB::Env, which is already open and therefore it is too late. It sounds to me as if the workaround is to have a new flag for calling log_set_config() befre Env open(). Or have I misunderstood something? Cheers, Mark
Hi Mark, your analysis looks fine. Can't tell for sure though - I'm away from my development environmentat the moment. Paul