perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perrin Harkins" <per...@elem.com>
Subject Re: mod_perl2 and SDBM-tied hashes
Date Sun, 29 Jul 2007 20:49:56 GMT
On 7/29/07, Brian Reichert <reichert@numachi.com> wrote:
> The symptom I see that after a 'set', subsequent 'gets' show me
> various results; sometimes the data comes back set, sometimes not.

The dbm implementation you're using will not always write everything
to disk until you untie it.  To make this transparent, you can use
MLDBM::Sync, which unties and reties on every request.  This is
necessary for read/write sharing on all dbms except BerkeleyDB.

- Perrin

Mime
View raw message