summaryrefslogtreecommitdiffstats
path: root/source/tdb
Commit message (Collapse)AuthorAgeFilesLines
...
* More checks for passing NULL tdb contexts to tdb functions.Tim Potter2000-02-161-0/+77
|
* tdb_traverse() now takes three arguments.Tim Potter2000-02-161-3/+3
|
* Return "Invalid tdb context" instead of crashing when tdb_error calledTim Potter2000-02-151-2/+6
| | | | with NULL tdb context.
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-044-12/+13
| | | | | | | | | | | | | | | | | | 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.
* tdb record read error return check fix from Dave Airlie <airlied@samba.org>.Jeremy Allison2000-01-241-1/+1
| | | | Jeremy.
* casts and defines to make solaris happyAndrew Tridgell2000-01-141-0/+4
|
* improved the error checkingAndrew Tridgell2000-01-083-27/+86
|
* don't use strcpyAndrew Tridgell2000-01-071-1/+2
|
* don't require readlineAndrew Tridgell2000-01-071-1/+13
|
* - patch from Rusty to neaten up the code a bitAndrew Tridgell2000-01-072-232/+109
| | | | - fixed a race condition in tdb_open()
* lower the default hash size a bitAndrew Tridgell2000-01-051-1/+1
|
* ignore a few filesAndrew Tridgell2000-01-031-0/+5
|
* drop the alignment to 4 bytes - this makes tdb more space efficientAndrew Tridgell2000-01-031-1/+1
| | | | and doesn't seem to affect performance
* updated docsAndrew Tridgell2000-01-022-3/+7
|
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-025-21/+54
| | | | | | | | | - 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/secAndrew Tridgell2000-01-021-2/+2
|
* - optimise tdb_store() a littleAndrew Tridgell2000-01-021-7/+15
| | | | - prevent a free of an unallocated pointer
* a useful locking tester - it uses lots of simultaneous writersAndrew Tridgell1999-12-241-0/+117
|
* fixed more locking bugs - all seems OK nowAndrew Tridgell1999-12-242-42/+67
|
* fixed locking codeAndrew Tridgell1999-12-232-70/+195
|
* fixed a bug in the handling of tdb version number upgradeAndrew Tridgell1999-12-221-0/+3
|
* added some paranoia codeAndrew Tridgell1999-12-221-41/+46
|
* expanded the tdb documentationAndrew Tridgell1999-12-211-0/+110
|
* converted all our existing shared memory code to use a tdb databaseAndrew Tridgell1999-12-211-31/+34
| | | | | | | | | | | | | instead of either sysv or mmap shared memory or lock files. this means we can now completely remove locking_shm.c locking_slow.c shmem.c shmem_sysv.c and lots of other things also got simpler locking.c got a bit larger, but is much better compartmentalised now
* first cut at using the tdb code for the connections structure, theAndrew Tridgell1999-12-213-5/+44
| | | | | SWAT status page and smbstatus. It made the code _much_ simpler, I wish we'd done a database module a long time ago!
* first pass at the database code for Samba. This also includes a testAndrew Tridgell1999-12-215-0/+1518
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