Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed crash bug when calling tdb_unlockkeys() with no locked keys. | Tim Potter | 2003-03-13 | 1 | -0/+2 |
| | | | | woot! | ||||
* | Note about using Valgrind with tdbs. | Martin Pool | 2003-03-11 | 1 | -0/+21 |
| | |||||
* | When opening an existing DB, don't require the hash_size specified to | Martin Pool | 2003-03-11 | 1 | -2/+1 |
| | | | | | | | | the open call to be the same as that of the existing tdb. The specified hash_size is only used if the tdb needs to be (re)created. With this patch in place, tdbtool can open the printing tdbs, which are created with a hash_size of 5000. Before it would fail with EIO. | ||||
* | Ensure tdb error code is set for corrupt and i/o errors before calling | Jeremy Allison | 2003-02-20 | 1 | -0/+19 |
| | | | | | the log function. This allows the log function to take action. Jeremy. | ||||
* | Doc | Martin Pool | 2003-02-14 | 1 | -1/+5 |
| | |||||
* | Ensure we overwrite a tdb if the hash size changes. | Jeremy Allison | 2003-02-04 | 1 | -1/+2 |
| | | | | Jeremy. | ||||
* | Added tdb_append() call. Efficiently adds to an entry. Used by new messaging | Jeremy Allison | 2003-01-11 | 1 | -12/+137 |
| | | | | | code. Also added torture tests for it. Jeremy. | ||||
* | Add chainlock_read functions to get a read lock. Used in *massively* | Jeremy Allison | 2002-11-09 | 1 | -1/+11 |
| | | | | | contended tdb's (and I've got one :-). Jeremy. | ||||
* | Merge of scalable printing code fix... Needs testing. | Jeremy Allison | 2002-11-07 | 1 | -1/+2 |
| | | | | | | | Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy. | ||||
* | Add a timeout to tdb_lock_bystring(). Ensure we never have more than | Jeremy Allison | 2002-10-04 | 1 | -0/+4 |
| | | | | | MAX_PRINT_JOBS in a queue. Jeremy. | ||||
* | Make explicit the difference between a tdb key with no data attached, and | Jeremy Allison | 2002-09-26 | 1 | -2/+11 |
| | | | | | a non existent entry. Stop a malloc(0) being called in the first case. Jeremy. | ||||
* | Never, *ever* hold a mutex lock in the message database where there may | Jeremy Allison | 2002-09-17 | 1 | -0/+15 |
| | | | | | | | 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. | ||||
* | ensure that we unlock in case we hit a tdb error | Andrew Tridgell | 2002-08-30 | 1 | -0/+3 |
| | |||||
* | don't report the faiilure of non-blocking locks. They are supposed to | Andrew Tridgell | 2002-07-15 | 1 | -1/+1 |
| | | | | fail sometimes, thats why they are non-blocking :) | ||||
* | *Experimental* new large-scaling printer code. Splits printing.tdb into | Jeremy Allison | 2002-07-11 | 1 | -1/+2 |
| | | | | | | | a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy. | ||||
* | auto-recover from the fairly common case of a non-clean tdb shutdown | Andrew Tridgell | 2002-05-22 | 1 | -0/+10 |
| | | | | | while deleting a record. This leaves us with a non-free record on the free list. | ||||
* | Merge Herb's idmap endian fix. | Jeremy Allison | 2002-04-27 | 1 | -0/+6 |
| | | | | Jeremy. | ||||
* | We cannot set errno=0 in any of the wrapper calls as this breaks UNIX error | Jeremy Allison | 2002-04-19 | 1 | -1/+0 |
| | | | | | returns to the client. Jeremy. | ||||
* | First cut at fix for the EINTR problem... More needs to be done I think. | Jeremy Allison | 2002-04-19 | 1 | -1/+7 |
| | | | | Jeremy. | ||||
* | Added Shirish's client side caching policy change. | Jeremy Allison | 2002-04-10 | 1 | -1/+2 |
| | | | | Jeremy. | ||||
* | better check of called function's return | Simo Sorce | 2002-04-07 | 1 | -57/+125 |
| | | | | tdbtorture say it's ok | ||||
* | Various comment fixes from Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl> | Andrew Bartlett | 2002-03-01 | 1 | -1/+1 |
| | |||||
* | Memory leak on error condition fixed by Kian Win <codegrunt@rubbercookie.com>. | Jeremy Allison | 2002-02-27 | 1 | -0/+1 |
| | | | | Jeremy. | ||||
* | Removed version number from file header. | Tim Potter | 2002-01-30 | 1 | -2/+1 |
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. | ||||
* | Raise log level of warning produced when the open() of the tdb fails. | Tim Potter | 2002-01-22 | 1 | -1/+1 |
| | | | | Sometimes an open error is OK. | ||||
* | Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace. | Jeremy Allison | 2002-01-09 | 1 | -0/+5 |
| | | | | Jeremy. | ||||
* | debug statement fixups. | Jeremy Allison | 2002-01-02 | 1 | -31/+21 |
| | | | | | Merge SAFE_FREE fix in tdb from 2.2, and IRIX fix. Jeremy. | ||||
* | more irix -64 portability fixes | Andrew Tridgell | 2001-12-31 | 1 | -1/+2 |
| | |||||
* | Must check against -1 for fcntl error check. | Jeremy Allison | 2001-12-13 | 1 | -4/+4 |
| | | | | Jeremy | ||||
* | Fix up warnings. Make tdb_openXX() names const. | Jeremy Allison | 2001-12-11 | 1 | -2/+2 |
| | | | | Jeremy. | ||||
* | Doc. | Martin Pool | 2001-12-10 | 1 | -1/+3 |
| | |||||
* | Allow for internal databases which may have no name. | Martin Pool | 2001-12-10 | 1 | -5/+5 |
| | |||||
* | Log more error messages. | Martin Pool | 2001-12-10 | 1 | -0/+1 |
| | |||||
* | Log more error messages. | Martin Pool | 2001-12-10 | 1 | -2/+12 |
| | |||||
* | Allocate tdb name up front in case log functions want to use it. | Martin Pool | 2001-12-10 | 1 | -6/+5 |
| | |||||
* | tdb_open_ex: More cleanups: just dynamically allocate the TDB_CONTEXT | Martin Pool | 2001-12-10 | 1 | -14/+27 |
| | | | | up front, rather than working on the stack and then copying across. | ||||
* | Refactor code to check whether already open into its own function. | Martin Pool | 2001-12-10 | 1 | -8/+21 |
| | |||||
* | tdb_open_ex should always "goto fail" in case of error, rather than | Martin Pool | 2001-12-10 | 1 | -1/+2 |
| | | | | | just returning. I don't think this would leak at the moment, but it's an accident waiting to happen. | ||||
* | Doc. | Martin Pool | 2001-12-10 | 1 | -0/+4 |
| | |||||
* | tdb_open_ex: Continue previous refactoring so that we consistently | Martin Pool | 2001-12-10 | 1 | -12/+12 |
| | | | | just say "tdb" not "&tdb". | ||||
* | tdb_open_ex: Refactor to use a pointer to tdb, rather than an auto | Martin Pool | 2001-12-10 | 1 | -57/+58 |
| | | | | tdb, to be consistent with the rest of the code. | ||||
* | Put back changes to set errno, which seem to do no harm. | Martin Pool | 2001-12-04 | 1 | -12/+42 |
| | |||||
* | undo | Martin Pool | 2001-12-04 | 1 | -156/+69 |
| | |||||
* | Implement suggestion from tridge to leave the old tdb_open interface | Martin Pool | 2001-12-04 | 1 | -2/+9 |
| | | | | | 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 Pool | 2001-12-04 | 1 | -66/+124 |
| | | | | | | | | | | | | | - 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. | ||||
* | Set errno in tdb_open in cases where we detect an error in opening the | Martin Pool | 2001-12-04 | 1 | -11/+33 |
| | | | | | | | | database, but no underlying system call sets errno. The particular case I had was a mangled .tdb, but there are others. For this one, set EIO. It's a shame Unix messages aren't more detailed -- "bad data format" would be better. | ||||
* | Removed #ifdef TDB_DEBUG around tdb_dump_all() and tdb_printfreelist() | Tim Potter | 2001-11-09 | 1 | -5/+3 |
| | | | | so that tdbtool can be compiled without having to make clean. | ||||
* | Don't core dump when using spinlocks on a read-only tdb. Unfortunately this | Jeremy Allison | 2001-10-16 | 1 | -4/+16 |
| | | | | | | | | | | means that a read-write opener and a read-only opener are using different locking mechanisms - this needs to be addressed, but it's hard as the read-write opener using the spinlocks is usually first, so there's no way to force them to change down to the fcntl method. Read only access is less important anyway and can never corrupt the tdb anyway, so errors in read-only record reads are more tolerable. Jeremy | ||||
* | Fix for tdb_oob() on TDB_INTERNAL databases. | Jeremy Allison | 2001-10-12 | 1 | -2/+7 |
| | | | | Jeremy. | ||||
* | Ensure accessing NT member servers works with a Samba PDC. Don't | Jeremy Allison | 2001-10-03 | 1 | -1/+2 |
| | | | | | | change these timestamp settings without good reason. Remove CLEAR_IF_FIRST flag is tdb is read-only. Jeremy. |