[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mod_perl2 and SDBM-tied hashes


On 7/29/07, Brian Reichert <suppressed> 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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.