in reply to
BerkeleyDB locks
It is possible to do your own locking, with
MLDBM::Sync
. However, performance will be much worse than letting BerkeleyDB do it. Have you tried to recover it using the db_recover tool they supply? That normally fixes any leftover lock issues.
Comment on
Re: BerkeleyDB locks
Replies are listed 'Best First'.
Re^2: BerkeleyDB locks
by
mjemmeson
(Monk)
on Aug 01, 2006 at 09:36 UTC
it should clear the locks, but all processes will have to stop accessing the db while the recover tool is run, which may not be possible...
[reply]
Re^3: BerkeleyDB locks
by
perrin
(Chancellor)
on Aug 01, 2006 at 14:40 UTC
When you have a crash and something gets corrupted, you have to stop and recover from it. I don't think there's any way to avoid that.
[reply]
In Section
Seekers of Perl Wisdom