summaryrefslogtreecommitdiffstats
path: root/source/tdb
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Revert "tdbtool: fix off-by-one error in argument length. (bug #2344)"Michael Adam2008-07-091-1/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit dd781951fb9acc556f1bd6760b72151a7c359a9f. 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
* 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
* Fix build warning.Günther Deschner2008-01-291-3/+4
| | | | Guenther
* fix dump printout when byte >= 0x80Herb Lewis2007-12-201-1/+1
|
* Fix bug where tdb lock call interrupted withJeremy Allison2007-11-063-0/+16
| | | | | | | | 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.
* [GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.samba-misc-tags/initial-v3-0-testGerald (Jerry) Carter2007-10-1031-0/+7057
|
* r22249: move tdb code to lib/tdb/ as in samba4Stefan Metzmacher2007-10-1031-6905/+0
| | | | metze
* r22164: Fix missing lock count release in transaction cancel.Jeremy Allison2007-10-101-0/+2
| | | | | Found by Taj Khattra <taj.khattra@gmail.com>. Jeremy.
* r22054: merge from samba4:Stefan Metzmacher2007-10-101-77/+0
| | | | | | remove broken samba3 specific stuff from tdbtool metze
* r22051: use libreplace headersStefan Metzmacher2007-10-101-13/+4
| | | | metze
* r22039: fix compiler warningsStefan Metzmacher2007-10-101-6/+7
| | | | metze
* r22033: remove useless lineStefan Metzmacher2007-10-101-3/+0
| | | | metze
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-108-23/+23
| | | | | | and fix all compiler warnings in the users metze
* r21722: Add the dead record functionality presented on ↵Volker Lendecke2007-10-104-6/+187
| | | | | | | | | | | samba-technical@samba.org. If you do a tdb_set_max_dead(tdb, n), then for this tdb a delete operation will only mark a record as dead and re-use it if a new record is created. The parameter n allows for at most n dead records per hash chain. If this number is exceeded, all dead records are put on the central freelist. Volker
* r21445: Apply tdb_parse_record Tridges error return, merge to 3_0_25 and 4_0Volker Lendecke2007-10-101-9/+2
|
* r21444: Check in tdb_parse_record. Not merging to the other branches yet, we ↵Volker Lendecke2007-10-104-13/+101
| | | | | | | | | | | need to agree on the behaviour of non-existing records. Tridge, can you comment? Should we change tdb_fetch, or should we have different concepts in tdb_fetch() and tdb_parse_record() ? Volker
* r21412: The last patch also incremented the seqnum when tdb_store failed. ↵Volker Lendecke2007-10-101-8/+10
| | | | | | | | | Not as bad as not doing it at all, but needs fixing. Also simplify the logic, I had missed the "goto out" at the end of the function. Volker
* r21410: We have to increment the sequence number also when tdb_update_hash()Volker Lendecke2007-10-101-1/+1
| | | | | | | | succeeded. Found while testing the brlock seqnum patch. Tridge, please check! Volker
* r21303: As discussed on samba-technical: Change the static array for the ↵Volker Lendecke2007-10-104-36/+96
| | | | | | | | | | | in-memory mirrors of the hash chain locks to a dynamically allocated one. Jeremy, I count on you to revert it if the build farm freaks out, it's after midnight here :-) Volker
* r21218: Fix typoVolker Lendecke2007-10-101-1/+1
|
* r20503: And one more 64-bit warningVolker Lendecke2007-10-101-1/+1
|
* r20498: Two 64-bit warningsVolker Lendecke2007-10-101-2/+4
|
* r20269: merge -r20264:20267 from SAMBA_3_0_24Herb Lewis2007-10-101-0/+3
| | | | more no previous prototype warnings
* r20063: Fix a missing protoype warning in freelistcheck.cVolker Lendecke2007-10-101-0/+2
|
* r19992: Add support to the tdb Makefile.in for executable extensions and forPaul Green2007-10-101-15/+23
| | | | separately specifying CPPFLAGS and LDFLAGS.
* r19959: Allow tdb to be built standalone in Samba3.Jeremy Allison2007-10-107-6/+141
| | | | | | Add code to check for loops in the free list. Should help us validate tdb's against corruption. Jeremy.
* r19823: "log" is an internal define in older versions of gcc.Jeremy Allison2007-10-103-4/+4
| | | | | Rename to log_ctx. Jeremy.
* r19685: Two changes inspired by problems with huge tdbs. tdbtool's list ↵Volker Lendecke2007-10-104-10/+19
| | | | | | | | | | | | | | | | | | | | | | command now prints the hash on every record for easier awk'ing, and tdbbackup allows a different hash chain length on the backed up tdb. Jeremy, Günther, this might be interesting for you huge domains. Not only locking.tdb, also the winbind ones might grow huge. In the installation I fixed with this winbind spent a huge amount of CPU spinning through a degenerated winbindd_idmap.tdb with entries for more than 15.000 users. With a default number of hash chains of 131 on that tdb you can imagine that the lists get large. Not merging to 4, I don't get tdbbackup to compile there right now. What about changing the global default hash chain number to be dramatically larger? Disk is cheap these days. Volker
* r19429: moved tdb/common/tdbutil.c into lib/util_tdb.cAndrew Tridgell2007-10-102-882/+0
| | | | see discussion on samba-technical
* r19426: merge nearly all the differences between Samba3 tdb and Samba4Andrew Tridgell2007-10-1017-406/+558
| | | | | | | | | | | | | | | | | | | tdb. This includes: - the new tdb_lockall and tdb_lockall_read code, which will be needed for the ldb speedups - the tdb logging changes. This is an intermediate step to keep the differences between the two branches small. The plan is still to move to a tdb_init()/tdb_set_logging_function()/tdb_attach() style of open which will make things much cleaner. - the updated test suites and standalone tdb build code - use libreplace headers There are still some small differences I haven't merged. I'll discuss those on the list.
* r18745: Use the Samba4 data structures for security descriptors and security ↵Jelmer Vernooij2007-10-101-3/+3
| | | | | | | | | descriptor buffers. Make security access masks simply a uint32 rather than a structure with a uint32 in it.
* r18731: fix the build on aixStefan Metzmacher2007-10-101-0/+5
| | | | metze
* r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()Stefan Metzmacher2007-10-101-2/+1
| | | | | | | and DLIST_DEMOTE() now take the type of the tmp pointer not the tmp pointer itself anymore. metze
* r18030: When compiling with C++, nested structs lead to nested class ↵Volker Lendecke2007-10-101-6/+7
| | | | | | | | | | | | | definitions which are not compatible. I am aware that this would be a huge change in Samba4, but I would like to see it in the code that is shared. Stefan, when you do merge work, can you get this across to Samba4? Thanks, Volker
* r17607: Adapt the Samba4 directory structure for tdb. Makes it easier to diff.Volker Lendecke2007-10-1033-34/+617
| | | | | | Let's see what it breaks. For me it works :-) Volker
* r17554: CleanupVolker Lendecke2007-10-102-6/+8
|
* r17460: First step at fixing the build breakage with the groupmapping test. ↵Volker Lendecke2007-10-101-0/+1
| | | | | | | | | | | | On Linux, F_RDLCK is defined to 0, for example NetBSD has it at 1. Still does not work fully though. Still investigating. This might also be interesting to Samba4. Volker
* r17425: Add the multi-key wrapper. If it's necessary to add general blobs as ↵Volker Lendecke2007-10-102-8/+6
| | | | | | | | keys, this can trivially be added later. Volker
* r17315: Make talloc and tdb C++-warning-free. Would this also be interesting ↵Volker Lendecke2007-10-106-18/+24
| | | | | | | | in talloc and tdb "upstream"? Volker
* r17030: Partially fix standalone build of tdb directoryJeremy Allison2007-10-102-2/+1
| | | | | (tdbtool still fails). Jeremy.
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-1016-2578/+3553
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r15508: Use clock_gettime for profiling timstamps if it is available. UseJames Peach2007-10-101-17/+0
| | | | the fastest clock available on uniprocessors.
* r15448: New autoconf macro to test for sysconf variables.James Peach2007-10-101-1/+9
|
* r15104: Implement Samba4's tdb_name().Volker Lendecke2007-10-101-0/+8
| | | | Volker
* r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring ↵Volker Lendecke2007-10-101-5/+13
| | | | | | | | | does not have the timeout argument in Samba4. Add a new routine tdb_lock_bystring_with_timeout. Volker
* r14954: Fix #3569 based on William Jojo's work. AIX alsoJeremy Allison2007-10-103-4/+20
| | | | | | | | | has the linear posix locking issue which causes CLEAR_IF_FIRST to cause performance problems. As we know we're in a daemon architecture with long-lived parent we can avoid this in the Samba case. Add a comment explaining this. Jeremy.
* r14030: Fix resource leak in error codepath. Coverity CID #64.Jeremy Allison2007-10-101-2/+6
| | | | Jeremy.
* r14026: Fix resource leak on error exit. Coverity CID #65.Jeremy Allison2007-10-101-0/+2
| | | | Jeremy.