On Wed, 21 Mar 2001, Stas Bekman wrote:
> > You mean with DB_File?  There's a big warning in the current version
> > saying not to do that, because there is some initial buffering that
> > happens when opening a database.
> 
> The warning says not to lock on dbm fd but an external file!

I think you'll still have problems with this technique, unless you
tie/untie every time.  I'm looking at the perldoc for DB_File version
1.76, at the section titled "Locking: the trouble with fd".  At the very
least, you'd have to call sync after acquiring a write lock but before
writing anything.

- Perrin

Reply via email to