tdb question
tridge at samba.org
tridge at samba.org
Thu Jan 31 23:52:12 GMT 2008
Jeremy,
> If you don't need the old processes to see the new db "under
> construction" as it were, then just write out a new tdb, delete
> the old file and signal the old processes to switch over.
No, much better to use a transaction:
tdb_transaction_start(tdb);
tdb_wipe_all(tdb);
tdb_store(tdb, .....); /* write all your new records */
tdb_transaction_commit(tdb);
No need to signal processes to switch over.
Cheers, Tridge
More information about the samba-technical
mailing list