I did read the tutorial you mentioned in the hopes that it would mention things like the tie/open prebuffering issues associated with dbm files. I would have been very happy to upvote you and recommend your node if that critical bit of information had been present. As written, however, it encapsulated the fatal flaw with applying flock() knowledge to locking dbm-style databases.
So I was upset that you perpetuated a bad-meme. I recommend BDB because if I use it then I don't have to remember how to do this safely (as long as NFS isn't involved anyway) and can delegate the task to the database/database wrapper.
That was it. I also picked on you because sulfericacid responded to your post and it looked like s/he might actually use that knowledge which would be a bad idea. Oh and sulfericacid - that tutorial is perfectly valid and good if you're dealing with normal files and you use things like open/close/readline/etc to work with it. The issues I'm raising and that you're falling over are (to my knowledge) restricted to dbm-style databases.
In reply to Re: (jeffa) 4Re: flocking databases
by diotalevi
in thread flocking databases
by sulfericacid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |