On Fri, 2003-12-19 at 22:26, Terrence Brannon wrote:
>
> I quit using DBM files after one corrupted on me during an aborted
> write.
A similar negative experience got me in the habit of being strict
with locking discipline when using DBM.
open advisory file
lock advisory file (shared for reading, exclusive for writing)
tie data file
access data file
untie data file
unlock advisory file
close advisory file
if you can queue up database activity, you can do more than one
in the "access data file" section; otherwise you need to do all
these steps to safely use a local hashed file.
--
david nicol
The elves have left the building