summaryrefslogtreecommitdiff
path: root/source3/tdb/tdbutil.c
AgeCommit message (Collapse)AuthorFilesLines
2001-05-30merged fix for tdb_unpack from 2_2Andrew Tridgell1-1/+4
(This used to be commit 200b682e9bbe79897343422f7c870382ed6de40a)
2001-05-30- fixed an off-by-1 bug in the delayed deletion code that I believeAndrew Tridgell1-0/+1
was the initial cause of the connections database becoming corrupt. Note that this bug only happens when doing deletions within a traversal, which is why it has only showed up now - added delete within traversal testing to tdbtorture - added a lot more logging to tdb (This used to be commit 6e1277df9d964c615a3ad876d3b89ff8132081c1)
2001-05-30added a tdb_open_log() function that opens a tdb and enables loggingAndrew Tridgell1-0/+33
of messages from the tdb code into the Samba DEBUG() system just call tdb_open_log() instead of tdb_open() to enable this on any tdb (This used to be commit 3ab770484c6775df2c1a6f69427ebe656702c96c)
2001-05-25Added tdb_change_int_atomic() to allow atomic updates of a tdb int value.Jeremy Allison1-3/+32
Jeremy. (This used to be commit cf5015f15935605cf69078bc15251db61ddc48c7)
2001-05-06merge from 2.2Andrew Tridgell1-2/+5
(This used to be commit 13bf966cb8ed8df6b02018dceff94c275def8200)
2001-04-18merge from 2.2Andrew Tridgell1-0/+1
(This used to be commit f52a5014ee325f9d91f266f88eac51b6136a75b9)
2001-04-16Getting medieval with compiler warnings as Jeremy puts it.Tim Potter1-2/+2
(This used to be commit d05c3cf0f47a3c863adbed7ad4ab8f3248cd072d)
2001-04-13Merge of Andrew's changes in 2.2.Jeremy Allison1-48/+2
Jeremy. (This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
2001-04-11Fixed some compiler warnings.Tim Potter1-2/+2
(This used to be commit cda0f211b0dd41ae72ef3d65b9476c11c6f72de3)
2001-04-10Added HAVE_STDARG_H to tdbutil.cJeremy Allison1-5/+51
Jeremy. (This used to be commit e404e001990409eacf2e620d2269c2b162fa938b)
2000-12-06tdb_chainunlock() no longer returns a value.Tim Potter1-2/+2
(This used to be commit 2c9704c3db4014ca43b4b13160b9f53ff5f36e3b)
2000-12-06Changed to sourceforge tdb code. This includes spinlocks (so we now haveJeremy Allison1-2/+2
a --with-spinlocks option to configure, this does mean the on-disk tdb format has changed, so 2.2alphaX sites will need to re-create their tdb's. The upside is no more tdb fragmentation and a +5% on netbench. Swings and roundabouts.... Jeremy. (This used to be commit 9dea7b7c257db487f8ced7dad3fce92fba03ea91)
2000-11-10rpc_parse/parse_spoolss.c: Updated comment for old version of W2K.Jeremy Allison1-1/+1
tdb/tdbutil.c: With varargs uint16 is cast to (int). Jeremy. (This used to be commit 98764c5df9f363780427a423ead0913f7b2a0905)
2000-10-10added tdb_lock_bystring() and tdb_unlock_bystring()Andrew Tridgell1-0/+24
(This used to be commit ca443210c84575d39e60c38a7a12d037386d0e38)
2000-07-31Added John Reilly's enumports/addprinter/delprinter scripting code plus theJeremy Allison1-0/+14
fix for the Win9x printer drivers. Changed command names to add "command" string on the end for some consistancy with the other scripting commands. Added '%P' option to tdbpack/unpack to store long comment string. Made port name be "Samba Printer Port" if no enum port script given. Fixed prs_uint32_pre code to cope with null args. Jeremy. (This used to be commit 902ada63799cf27924c72e24e7593a8c9fb5eba9)
2000-06-08Moved tdb functions that access parse structs into parse_prs.cJeremy Allison1-30/+0
to prevent builkd breaking. Jeremy. (This used to be commit 6c7adeab0f92844ecefbcb923d0d4763d4c3eaa5)
2000-06-07Fixing get/set of security descriptors.Jeremy Allison1-8/+4
Removed ugly hack for NT printing. Fixed up tdb parse stuff memory leaks. Jeremy. (This used to be commit 8ef41f31c53e14ad057d883810a1cd2301fede2a)
2000-06-04added some debug code to track down pack/unpack problemsAndrew Tridgell1-0/+12
(This used to be commit ac9cdab33cddcc5ab00fc21ba79f416f5a9687e7)
2000-05-27getting and setting security descriptors on printers now worksAndrew Tridgell1-10/+42
this needed some fixes in tdb_unpack(). Tim, you'll need to update (This used to be commit 9422719ab4c35e4ce3199b62dd632433bf391283)
2000-05-24added tdb_pack() and tdb_unpack()Andrew Tridgell1-0/+148
(This used to be commit 6c15495b3087c04890af77149c39e823596bb4dd)
2000-05-12While we're all making incompatible tdb changes, I changed the implementationTim Potter1-4/+4
of tdb_{store,get}_int() to store the length of the string key + 1 so the stored key contains the trailing NULL character. This allows normal string library routines to manipulate keys. Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs consistent. (This used to be commit a423c7c5f21dc4046530b85482dee88dcfcbf070)
2000-05-09Added tdb_store_by_string() and tdb_fetch_by_string() functions to storeTim Potter1-0/+27
data with null terminated string keys. (This used to be commit d58146321b6fe50e1cc1a73da80c3d2e8c3412dc)
2000-04-29put tdb utility functions in a separate fileAndrew Tridgell1-0/+67
(This used to be commit 77009422a075300e5c07a3e75806a7dac47e2113)