Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags. | Andrew Tridgell | 2000-05-01 | 1 | -1/+1 |
| | | | | TDB_INTERNAL replaces the old method of passing a null filename | ||||
* | 1) added void* state argument to tdb_traverse. guess what! there were | Luke Leighton | 2000-02-04 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | two places i found where it was appropriate to _use_ that third argument, in locking.c and brlock.c! there was a static traverse_function and i removed the static variable, typecast it to a void*, passed it to tdb_traverse and re-cast it back to the traverse_function inside the tdb_traverse function. this makes the use of tdb_traverse() reentrant, which is never going to happen, i know, i just don't like to see statics lying about when there's no need for them. as i had to do in samba-tng, all uses of tdb_traverse modified to take the new void* state argument. 2) disabled rpcclient: referring people to use SAMBA_TNG rpcclient. i don't know how the other samba team members would react if i deleted rpcclient from cvs main. damn, that code's so old, it's unreal. 20 rpcclient commands, instead of about 70 in SAMBA_TNG. | ||||
* | - added tdb_flags option to tdb_open() | Andrew Tridgell | 2000-01-02 | 1 | -2/+3 |
| | | | | | | | | | - added TDB_CLEAR_IF_FIRST flag to clear the database if this is the first attached process. Useful for non-persistent databases like our locking area (this will also make upgrades to new database layouts easier) - use lock_path() in a couple of places - leave connections database open while smbd running - cleaned up some tdb code a little, using macros for constants | ||||
* | show test result in ops/sec | Andrew Tridgell | 2000-01-02 | 1 | -2/+2 |
| | |||||
* | first pass at the database code for Samba. This also includes a test | Andrew Tridgell | 1999-12-21 | 1 | -0/+217 |
suite and a very simple tool for manuipulating the databases. the main code is in tdb/tdb.c and includes both mmap and file based IO. All databases auto-expand and allow multiple simultaneous writers. the next step is using this new capability in lots of places in Samba where we have existing ad-hoc databases |