summaryrefslogtreecommitdiffstats
path: root/source/lib/tdb
Commit message (Collapse)AuthorAgeFilesLines
* lib/tdb: sync build system changes and python code from samba4v3-develStefan Metzmacher2008-09-1416-415/+5308
| | | | metze
* Update homepages for talloc, tdb and ldb subprojectsSimo Sorce2008-09-141-8/+6
| | | | (cherry picked from commit 8cb07814bc6627fc8eba228eafd13336e3ca3758)
* r25614: Add trivial tdb website.Jelmer Vernooij2008-09-141-0/+44
| | | | (cherry picked from commit 6f88c41c31271fd4b634b6393dc4ca44563a88d2)
* Remove unecessary msync.Jeremy Allison2008-09-051-4/+0
| | | | Jeremy.
* The msync manpage reports that msync *must* be called before munmap. Failure ↵Simo Sorce2008-09-032-2/+8
| | | | to do so may result in lost data. Fix an ifdef check, I really think we meant to check HAVE_MMAP here.
* Attempt to fix bug 5684Volker Lendecke2008-08-131-1/+1
| | | | | | | | | | | | | With the ctdb checkin dde9f3f006 tdb optimized out write lock checks for write-enabled transaction. Sadly, this also removed the possibility to ever remove dead records left over from tdb_delete calls within a transaction. Tridge, please check this! Did dde9f3f006 have any reason beyond performance optimizations? Thanks, Volker
* 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 (cherry picked from 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
* Convert in_transaction to a bool. Add the same fix VolkerJeremy Allison2008-05-201-4/+9
| | | | | used for tdb_traverse() to tdb_traverse_read(). Jeremy.
* Fix nesting tdb_traverse in a transactionVolker Lendecke2008-05-201-3/+8
| | | | | | | | | | | | | | | | | Calling tdb_traverse inside a transaction led to the transaction lock being held indefinitely. This was caused by the tdb_transaction_lock/unlock inside tdb_traverse: The transaction code holds the global lock at offset TRANSACTION_LOCK. The call to tdb_transaction_lock does nothing because the transaction_lock is already being held. tdb_transaction_unlock inside tdb_wrap resets tdb->have_transaction_lock but does not release the kernel-level fcntl lock. transaction_commit later on does not release that fcntl lock either, because tdb->have_transaction_lock was already reset by tdb_transaction(). This patch does fix that problem for me. An alternative would be to make tdb->have_transaction_lock a counter that can cope with proper nesting, maybe in other places as well. Volker
* build: Remove support for DESCRIPTION setting that is now unused.Jelmer Vernooij2008-02-131-1/+0
| | | | | | (cherry picked from parts of commit 91d7ba5202e6c375456a42c2c6861f63c7fcfc20) Michael
* talloc/tdb: Use manually written pc file.Jelmer Vernooij2008-02-131-0/+1
| | | | | | (cherry picked from parts of c8947fda23eb874a7694bdee1b4de605744c2769) Michael
* r25987: libreplace: rename AC_LD_SHLDFLAGS into AC_LIBREPLACE_SHLD_FLAGSStefan Metzmacher2008-02-131-1/+1
| | | | | | | | | metze (cherry picked from parts of commit c179807165b84dd832ab64f794034960668e5957. The changes to lib/replaces have already been merged.) Michael
* r25953: AIX make doesn't support $^.Jelmer Vernooij2008-02-131-1/+1
| | | | | | (cherry picked from parts of commit 91133d27110ee6447dbc64f1c8d52cb90ca1a86c) Michael
* r25944: Fix handling of sonameflag on AIX, which doesn't have anything like ↵Jelmer Vernooij2008-02-131-1/+1
| | | | | | | | that. (cherry picked from parts of commit 228dd6830eb9c91287bb3e0233d8b3a404ff3676) Michael
* merge tdb changes from ctdbAndrew Tridgell2008-02-081-33/+47
|
* merge growing tdb for tdb_wipe_all() fix from ctdbAndrew Tridgell2008-02-071-0/+43
|
* merged tdb transaction fixAndrew Tridgell2008-01-311-0/+3
|
* merged changes from v4-0-testAndrew Tridgell2008-01-182-43/+43
|
* Don't try ftruncate when the tdb is opened read-onlyVolker Lendecke2008-01-161-0/+1
| | | | | | | | Tridge, Jeremy, please check! Thanks, Volker
* Next try to fix the max dead record calculationVolker Lendecke2008-01-161-1/+1
|
* Fix some C++ warningsVolker Lendecke2008-01-161-2/+5
|
* Fix a missing prototype warningVolker Lendecke2008-01-161-0/+1
|
* Port from ctdb:Jeremy Allison2008-01-151-16/+6
| | | | | | minor fix to transaction_write_existing: tridge. Jeremy.
* samba3 already has tdb_validate()Andrew Tridgell2008-01-142-43/+0
|
* merged tdb fix from ctdb treeAndrew Tridgell2008-01-143-0/+123
|
* Fix the max_dead_record calculationsVolker Lendecke2008-01-131-4/+1
|
* Sync tdb with the tdb changes in ctdb. Spoke to tridge aboutJeremy Allison2008-01-1110-218/+358
| | | | | this. Fixes insidious problem with order n^2 freelist merging. Jeremy.
* Fix the max_dead_record calculationsVolker Lendecke2008-01-091-4/+1
|
* fix dump printout when byte >= 0x80Herb Lewis2007-12-201-1/+1
|
* Add a warning for a potential bug I've run intoVolker Lendecke2007-11-282-0/+6
|
* Add a missing prototypeVolker Lendecke2007-11-221-0/+1
|
* Add some commentsVolker Lendecke2007-11-091-3/+3
|
* Fix tdbtorture build.Jeremy Allison2007-11-061-1/+1
| | | | Jeremy.
* Fix const warning.Jeremy Allison2007-11-061-1/+1
| | | | Jeremy.
* Keep the tdb code in sync with Samba4.Jeremy Allison2007-11-0612-54/+238
| | | | | | | | | | | | | | | | | | | Mainly this is the svn changes : ------------------------------------------------------------------------ r23238 | tridge | 2007-05-30 01:15:49 -0700 (Wed, 30 May 2007) | 6 lines merged transaction lock changes from ctdb this ensures that having the global lock also implies the transaction lock ------------------------------------------------------------------------ r22832 | tridge | 2007-05-13 18:00:06 -0700 (Sun, 13 May 2007) | 3 lines merged the latest tdb changes from ctdb to Samba4 Jeremy.
* Fix bug where tdb lock call interrupted withJeremy Allison2007-11-066-0/+19
| | | | | | | | an alarm sig would not terminate and could lead to runaway smbd processes. Thanks to Dave Daugherty @ Centrify for pointing this out to us. Jeremy.
* offsetof() is always present as shown in someStefan Metzmacher2007-10-121-4/+0
| | | | | | libreplace testing. metze
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-0/+4
|
* r24743: Fix build warning.Günther Deschner2007-10-101-1/+1
| | | | Guenther
* r24738: Fix one more use of pwrite in tdb code in the spirit of r23972 and ↵Michael Adam2007-10-101-6/+25
| | | | | | r23977. Michael
* r24341: Make libreplace provide offsetof.Jelmer Vernooij2007-10-101-4/+0
|
* r24340: Use standard data type uint32_t rather than tdb-specific u32.Jelmer Vernooij2007-10-108-59/+56
|
* r24049: Some more 64-bit warningsVolker Lendecke2007-10-101-2/+4
|
* r23980: Fix one more use of pwrite in expand_file.Michael Adam2007-10-101-1/+10
| | | | Michael
* r23979: Fix another occurence of (written != requested) as anMichael Adam2007-10-101-5/+22
| | | | | | | | | error condition to write. This is in tdb_new_database. Fix one call to tdb_new_database in tdb_open_ex to not overwrite the newly propagated errno (typically ENOSPC). Michael
* r23977: Im prove the pwrite-patch to tdb_expand_file of r23972:Michael Adam2007-10-101-7/+20
| | | | | | | | | | | | | | | | | | | * prevent infinite loops due to 0 bytes written: try once more. if we still get 0 as return, set errno to ENOSPC and return -1 (error) * replace int by correct types (ssize_t and size_t). * print a warning log message in case "written < requested to write" usually this means, that the next call to pwrite will fail with return value -1 and set errno accordingly. Note that the former error condition "written != requested to write" is not a correct error condition of write/pwrite. If this is due to an error, a subsequent call to (p)write will reveal the cause (typically "no space left on device" - ENOSPC). Michael
* r23972: Fix a bug in pwrite error detection in tdb_expand_file():Michael Adam2007-10-101-3/+3
| | | | | | | The proper error condition is (ret == -1) instead of (ret != number_of_byte_told_to_write). Michael
* r23950: unlink before rename is superfluous.Michael Adam2007-10-101-1/+0
| | | | Michael
* r23925: Use NULL instead of 0 for a void * argument.Michael Adam2007-10-101-1/+1
|