summaryrefslogtreecommitdiffstats
path: root/source/tdb/tdb.h
Commit message (Collapse)AuthorAgeFilesLines
* fix tdb_append() prototypeGerald Carter2003-01-111-1/+1
|
* Added tdb_append() call. Efficiently adds to an entry. Used by new messagingJeremy Allison2003-01-111-0/+1
| | | | | code. Also added torture tests for it. Jeremy.
* Add a timeout to tdb_lock_bystring(). Ensure we never have more thanJeremy Allison2002-10-041-1/+1
| | | | | MAX_PRINT_JOBS in a queue. Jeremy.
* Never, *ever* hold a mutex lock in the message database where there mayJeremy Allison2002-09-171-0/+1
| | | | | | | be traversals being attempted. Yes, this was from bitter experience (and an out of control server :-). Also allow callers to break out of a tdb_chainlock with sigalarm if desired. Jeremy.
* Merge Herb's idmap endian fix.Jeremy Allison2002-04-271-0/+1
| | | | Jeremy.
* better check of called function's returnSimo Sorce2002-04-071-2/+2
| | | | tdbtorture say it's ok
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace.Jeremy Allison2002-01-091-5/+0
| | | | Jeremy.
* debug statement fixups.Jeremy Allison2002-01-021-0/+6
| | | | | Merge SAFE_FREE fix in tdb from 2.2, and IRIX fix. Jeremy.
* Fix up warnings. Make tdb_openXX() names const.Jeremy Allison2001-12-111-2/+2
| | | | Jeremy.
* Put back changes to set errno, which seem to do no harm.Martin Pool2001-12-041-1/+13
|
* undoMartin Pool2001-12-041-14/+2
|
* Implement suggestion from tridge to leave the old tdb_open interfaceMartin Pool2001-12-041-2/+4
| | | | | as it was, and add tdb_open_ex() which takes a log callback. I guess this makes more sense since it's a public interface.
* Better error handling:Martin Pool2001-12-041-3/+6
| | | | | | | | | | | | | - tdb_open api changed so that you now pass an error handling callback when opening the file, so that errors detected during opening have somewhere to go. (All calls from the body of Samba to this function go through a wrapper in tdbutil, which has been updated.) - Clean up logic for deciding how to open tdb. Emit log messages if something goes wrong (e.g. bad magic.) - tdbtool now logs errors to stderr.
* Added prototypes for new fns. Thanks Elrond.Jeremy Allison2001-12-031-0/+7
| | | | Jeremy.
* added a hook to reopen all tdb's after the server forkAndrew Tridgell2001-09-191-0/+1
| | | | this prevents the fd seek pointer problem
* try to make the tailer code much more robust. When a recordAndrew Tridgell2001-05-281-0/+2
| | | | | | | can't be merged don't fail the operation, instead just add it to the free list anyway added logging to tdb
* Changed to sourceforge tdb code. This includes spinlocks (so we now haveJeremy Allison2000-12-061-38/+73
| | | | | | | | a --with-spinlocks option to configure, this does mean the on-disk tdb format has changed, so 2.2alphaX sites will need to re-create their tdb's. The upside is no more tdb fragmentation and a +5% on netbench. Swings and roundabouts.... Jeremy.
* support both read and write locks inside the tdbAndrew Tridgell2000-06-151-1/+6
|
* an imcompatible tdb format change (sorry!)Andrew Tridgell2000-05-121-0/+1
| | | | | this will give us a much nicer migration path for the proposed semaphore code
* added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags.Andrew Tridgell2000-05-011-0/+4
| | | | TDB_INTERNAL replaces the old method of passing a null filename
* added TDB_MODIFY flag - patch from from lukeAndrew Tridgell2000-04-251-1/+2
|
* locking/locking.c: Fixed placeholder code for POSIX locking.Jeremy Allison2000-04-181-0/+2
| | | | | | | | printing/printing.c: Cast tdb_delete to (tdb_traverse_func) to stop warning. tmpfile gives mirror warning. smbd/groupname.c: Remember to file_lines_free() on exit. tdb/tdb.h: Add tdb_traverse_func typedef. Jeremy
* 1) added void* state argument to tdb_traverse. guess what! there wereLuke Leighton2000-02-041-1/+2
| | | | | | | | | | | | | | | | | | 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.
* improved the error checkingAndrew Tridgell2000-01-081-1/+8
|
* - patch from Rusty to neaten up the code a bitAndrew Tridgell2000-01-071-0/+3
| | | | - fixed a race condition in tdb_open()
* - added tdb_flags option to tdb_open()Andrew Tridgell2000-01-021-1/+6
| | | | | | | | | - 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
* fixed locking codeAndrew Tridgell1999-12-231-1/+1
|
* first cut at using the tdb code for the connections structure, theAndrew Tridgell1999-12-211-0/+1
| | | | | 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-211-0/+61
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