tdb question

Herb Lewis hlewis at panasas.com
Thu Jan 31 20:40:42 GMT 2008


I have a tdb opened by several processes. I want one process
to basically delete all the current entries and rebuild the
tdb with new entries. What is the best way to do this? Should
I just call tdb_writelock, traverse the tdb to delete all existing
records then store the new ones and call tdb_writeunlock, or is
there some better way using transactions? Will other process
calls to tdb_fetch block or return an error while it is locked?


More information about the samba-technical mailing list