develooper Front page | perl.kiokudb | Postings from May 2009

Re: KiokuDB::Backend::BDB and replication

Thread Previous
From:
Yuval Kogman
Date:
May 25, 2009 09:43
Subject:
Re: KiokuDB::Backend::BDB and replication
Message ID:
a891e1bd0905250943k46e64846vf8760db4c4650509@mail.gmail.com
2009/5/25 Paul Marquess <Paul.Marquess@ntlworld.com>:

> I assume you are referring to ENV->set_alloc and DB_DBT_MALLOC, DB_DBT_REALLOC,... ?

Yep

> My BerkeleyDB module is *NOT* thread safe at the moment, especially where transactions are concerned. Major surgery to BerkeleyDB.xs will be required to make it work.

There's no need for thread safety from the POV of multiple Perl
threads calling the BDB library, but rather the BDB library
maintaining 2 additional internal posix threads. They are not exposed,
so there's no threading concerns for the calling API.

I had this working but obviously the code was failing other tests
because I just kludged the allocation stuff. I think I emailed you
about 3-4 months ago to that effect.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About