summaryrefslogtreecommitdiff
path: root/source3/tdb/common
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r22033: remove useless lineStefan Metzmacher1-3/+0
metze (This used to be commit cb6d90d7963d8fc650b46355d7e6590d1e0654ad)
2007-10-10r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher5-10/+10
and fix all compiler warnings in the users metze (This used to be commit 3a28443079c141a6ce8182c65b56ca210e34f37f)
2007-10-10r21722: Add the dead record functionality presented on ↵Volker Lendecke3-6/+186
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 (This used to be commit 97af3a019b196d530a50ffc05c57568e2dbda4bb)
2007-10-10r21445: Apply tdb_parse_record Tridges error return, merge to 3_0_25 and 4_0Volker Lendecke1-9/+2
(This used to be commit c852d9b56971673fc62eec3460720478d81c279d)
2007-10-10r21444: Check in tdb_parse_record. Not merging to the other branches yet, we ↵Volker Lendecke3-13/+97
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 (This used to be commit fba79e75c0138c3ae4e73014a1d1a2c2045c35bb)
2007-10-10r21412: The last patch also incremented the seqnum when tdb_store failed. ↵Volker Lendecke1-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 (This used to be commit 101789946130d51f3092d19f081071bdb5e43c21)
2007-10-10r21410: We have to increment the sequence number also when tdb_update_hash()Volker Lendecke1-1/+1
succeeded. Found while testing the brlock seqnum patch. Tridge, please check! Volker (This used to be commit 815f2b19409dc015bb2a04b16224a7ac8071a991)
2007-10-10r21303: As discussed on samba-technical: Change the static array for the ↵Volker Lendecke4-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 (This used to be commit c50f099be1fcae2d533e1c3816cb25c315ba167a)
2007-10-10r21218: Fix typoVolker Lendecke1-1/+1
(This used to be commit 5b25ce30022b5968717691223d065a8e0770c6e3)
2007-10-10r20503: And one more 64-bit warningVolker Lendecke1-1/+1
(This used to be commit 7bcde1069e38d70808d78c408f16821a0bfadcdd)
2007-10-10r20498: Two 64-bit warningsVolker Lendecke1-2/+4
(This used to be commit 382827ebac61646ec31fe1d56ccde2ea337e8f9e)
2007-10-10r20269: merge -r20264:20267 from SAMBA_3_0_24Herb Lewis1-0/+3
more no previous prototype warnings (This used to be commit 41be182f78762372ae13759ede5d2bd40a71d7f5)
2007-10-10r20063: Fix a missing protoype warning in freelistcheck.cVolker Lendecke1-0/+2
(This used to be commit 2fdfc54e7eebc68c81ad5f3fa8d0607bd3b579c5)
2007-10-10r19959: Allow tdb to be built standalone in Samba3.Jeremy Allison2-1/+109
Add code to check for loops in the free list. Should help us validate tdb's against corruption. Jeremy. (This used to be commit f8e7386773cbbb31e2f42ffcbae9b979c1197635)
2007-10-10r19823: "log" is an internal define in older versions of gcc.Jeremy Allison2-3/+3
Rename to log_ctx. Jeremy. (This used to be commit dbf0e58a1e7fa77ce0338104cf71c7a81214884b)
2007-10-10r19685: Two changes inspired by problems with huge tdbs. tdbtool's list ↵Volker Lendecke2-7/+11
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 (This used to be commit 577d0ff658596f8246f120e0342cc5c9e4077ece)
2007-10-10r19429: moved tdb/common/tdbutil.c into lib/util_tdb.cAndrew Tridgell1-811/+0
see discussion on samba-technical (This used to be commit 1ad563286f00be0d72930b81b10cb74f13c5fbff)
2007-10-10r19426: merge nearly all the differences between Samba3 tdb and Samba4Andrew Tridgell9-261/+292
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. (This used to be commit 48903c75edfaf75dbd3e9d052e615552cdff39b4)
2007-10-10r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()Stefan Metzmacher1-2/+1
and DLIST_DEMOTE() now take the type of the tmp pointer not the tmp pointer itself anymore. metze (This used to be commit 2f58645b7094e81dff3734f11aa183ea2ab53d2d)
2007-10-10r18030: When compiling with C++, nested structs lead to nested class ↵Volker Lendecke1-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 (This used to be commit 959ea2c7dc3ab42a06ac74dc4767d7d06e525cbc)
2007-10-10r17607: Adapt the Samba4 directory structure for tdb. Makes it easier to diff.Volker Lendecke12-0/+4760
Let's see what it breaks. For me it works :-) Volker (This used to be commit 337be14b432e5dfd80c7418b2db4fe0087259b77)