summaryrefslogtreecommitdiffstats
path: root/source4/lib/tdb/tools/tdbtool.c
Commit message (Collapse)AuthorAgeFilesLines
* Use single copy of tdb in both samba3 and samba4.Jelmer Vernooij2008-09-161-659/+0
|
* Revert "tdbtool: fix off-by-one error in argument length. (bug #2344)"Michael Adam2008-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | | This reverts commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115. This fix is not valid: 1. convert_string() is not only used for key strings but also for data. 2. Some databases use string_tdb_data() i.e. non-null-terminated strings as keynames and others (like the one I was using), use string_term_tdb_data(), i.e. zero-terminated key strings. After discussion with Metze, the easiest (and proper way) to handle this is to specify key names as "keyname\0" for databases which use string_term_tdb_data(). Sorry for the noise... Michael (This used to be commit 17c012c4645f4e9542537c15f80d9b4e74304d11)
* tdbtool: fix off-by-one error in argument length. (bug #2344)Michael Adam2008-07-081-1/+1
| | | | | | | | | | | | | | This prevented all commands operating on keys (all non-traverse commands) in tdbtool to fail with a "fetch failed" or "delete failed" message. It seems that it fixes bug #2344 ... Apparently this bug was introduced with 94e53472666ed in 2005. Either nobody is using tdbtool or else tdb_find() has become more strict about the key legth in the meantime. :-) Michael (This used to be commit fafb8ad2b81b9a46cf8259bedc1dca5023b06115)
* merged changes from v3-2-testAndrew Tridgell2008-01-181-1/+1
| | | | (This used to be commit 7077df3e2e3f171532f6a5ac87d45201736c9c11)
* r25892: Keep the tdb code in sync between 3.2.x and 4.0.Jeremy Allison2007-12-211-2/+53
| | | | | | | | Add in the alarm fix to allow locks to exit on alarm signal. Sync up the changes in tools. Jeremy. (This used to be commit cb6c663fa8818f49cc36f196bb5f4dea47edd69e)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r22053: remove samba3 specific stuff from tdbtoolStefan Metzmacher2007-10-101-77/+0
| | | | | | | | | should I merge this to SAMBA_3_0? as it's also totally broken there, as the connection_struct definition is completely different metze (This used to be commit 5677b01d1dc63276a36daac400d5b0d935034ce6)
* r22052: merge tdbtool from samba3 and build itStefan Metzmacher2007-10-101-251/+395
| | | | | metze (This used to be commit f471e752161e392ef7324df30517af1818a27d1d)
* r17737: fixed a 'declaration in code' errorAndrew Tridgell2007-10-101-1/+2
| | | | (This used to be commit aca417c6b164b54334cc46e126dd362ddab509d3)
* r16938: Fix breakage of TDB on VOS (declaration after statement)Andrew Bartlett2007-10-101-1/+2
| | | | | Andrew Bartlett (This used to be commit d0ed7cd241e0e7889406f62fd620d8fe39d4498c)
* r16917: Fix compile errors found by the testing of tdb on the build farm.Andrew Bartlett2007-10-101-3/+9
| | | | | Andrew Bartlett (This used to be commit a6e0846d9b5f1adc2ff137247a5c3f32746e43b5)
* r16916: Implement metze's proposed changes to the tdb logging API.Andrew Bartlett2007-10-101-1/+4
| | | | | | | | This clearly links the log function with its private pointer, and makes the argument list for tdb_open_ex a bit shorter. Andrew Bartlett (This used to be commit 5d5503e8d8a10ead3ef21a5ffda52cadb9a07727)
* r16774: This patch modifies the tdb API to allow the logging function to be usedAndrew Bartlett2007-10-101-5/+5
| | | | | | | | | | | | | | | | | as part of ldb. This allows tdb failures to be passed all the way up to Samba's DEBUG system, which allowed easier debugging. Unfortunately I had to extend the tdb API, as the logging function didn't have a context pointer. I've worked over the 'debug levels' in TDB. Most of them were 0, which didn't seem right, as some were trace-like messages. We didn't see any of these previously, except when accessing TDB directly. Andrew Bartlett (This used to be commit 58898092c1ce043f6d698db5065f372b79109e22)
* r10405: added transactions into tdb, and hook them into ldb. See myAndrew Tridgell2007-10-101-6/+20
| | | | | | | | | samba-technical posting for more details on the transactions design. This also adds a number of command line arguments to tdbtorture, making it more flexible, and fixes some lock deadlock conditions in the tdbtorture code. (This used to be commit 06bd8abba942ec9f1e23f5c5d546cbb71ca3a701)
* r10253: a fairly large tdb cleanup and re-organise. Nearly all of this changeAndrew Tridgell2007-10-101-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | just involves splitting up the core tdb.c code into separate files on logical boundaries, but there are some minor functional changes as well: - move the 'struct tdb_context' into tdb_private.h, hiding it from users. This was done to allow the structure to change without breaking code that uses tdb. - added accessor functions tdb_fd(), tdb_name(), and tdb_log_fn() to access the elements of struct tdb_context that were used by external code but are no longer visible - simplied tdb_append() to use tdb_fetch()/tdb_store(), which is just as good due to the way tdb locks work - changed some of the types (such as tdb_off to tdb_off_t) to make syntax highlighting work better - removed the old optional spinlock code. It was a bad idea. - fixed a bug in tdb_reopen_all() that caused tdbtorture to sometimes fail or report nasty looking errors. This is the only real bug fixed in this commit. Jeremy/Jerry, you might like to pickup this change for Samba3, as that could definately affect smbd in Samba3. The aim of all of these changes is to make the tdb transactions/journaling code I am working on easier to write. I started to write it on top of the existing tdb.c code and it got very messy. Splitting up the code makes it much easier to follow. There are more cleanups we could do in tdb, such as using uint32_t instead of u32 (suggested by metze). I'll leave those for another day. (This used to be commit 4673cdd0d261614e707b72a7a348bb0e7dbb2482)
* r3421: got rid of some unused codeAndrew Tridgell2007-10-101-30/+0
| | | | (This used to be commit 0333f417a86a54a328ca9bd908076f9fe8405dc7)
* r990: fix tdb standalone buildStefan Metzmacher2007-10-101-2/+2
| | | | | metze (This used to be commit 4c1c9f59ccea8b6cd7edf3bad8acb9cd8c772670)
* r943: change samba4 to use 'uint8_t' instead of 'unsigned char'Stefan Metzmacher2007-10-101-2/+2
| | | | | metze (This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a)
* r848: convert lib/tdb into the same layout as lib/ldbStefan Metzmacher2007-10-101-0/+547
metze (This used to be commit bacab322ce89979f0ad0811cd15b73d81eceb69d)