Wietse Venema wrote: > In the case of Postfix, most daemon applications are readers, while > postmap and postalias are writers. The readers use per-query locks, > while the writers use a global lock while they rewrite the table > from scratch. > > In the case of DBM (which consists of two files) that is the best > one can do. In the case of CDB and (soon) Berkeley DB it's better > to rename the file into place after rewriting it from scratch.
Ah, I totally overlooked the handling of O_TRUNC in my dict_mdb.c, will send an updated patch shortly. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/