summaryrefslogtreecommitdiffstats
path: root/source3/lib/dbwrap
Commit message (Collapse)AuthorAgeFilesLines
* s3:dbwrap_ctdb: return the number of records in db_ctdb_traverse() for ↵Stefan Metzmacher2011-10-141-3/+15
| | | | | | | | | persistent dbs metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Oct 14 20:59:37 CEST 2011 on sn-devel-104
* s3:dbwrap_ctdb: fix the build after changing signature of tdb_wrap_open()Michael Adam2011-10-131-1/+7
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Oct 13 18:50:47 CEST 2011 on sn-devel-104
* lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett2011-10-131-2/+6
| | | | | | | | This passes down a struct loadparm_context to allow these parameters to be checked. This may be s3 or s4 context, allowing the #if _SAMBA_BUILD_ macro to go away safely. Andrew Bartlett
* s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ ↵Michael Adam2011-10-121-2/+1
| | | | | | record in traverse It did not compare the last charcter (usually '\0')
* s3:dbwrap_ctdb: fix check for skipping the __db_sequence_number__ in traverseMichael Adam2011-10-121-1/+1
| | | | | Brown paperbag. This omitted the "== 0" hand hence skipped all keys of the same length as __db_sequence_number__ but different from it...
* s3-dbwrap_ctdb: fix the build.Günther Deschner2011-10-121-1/+4
| | | | | | | | | Michael, please check. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 12 15:25:56 CEST 2011 on sn-devel-104
* s3:dbwrap: remove m_all marshall buffer from ctdb transaction.Gregor Beck2011-10-121-23/+1
| | | | | | | | | it was only used by ctdb_replay_transaction and was a actually write only Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Oct 12 05:20:36 CEST 2011 on sn-devel-104
* s3:dbwrap: traverse records created within this transaction.Gregor Beck2011-10-121-1/+39
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: change dbwrap_store_uint32() to NTSTATUS return typeMichael Adam2011-10-112-4/+6
| | | | | | | for consistency and better error propagation Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Oct 11 15:51:00 CEST 2011 on sn-devel-104
* s3:dbwrap: change dbwrap_store_int32() to NTSTATUS return typeMichael Adam2011-10-112-4/+6
| | | | for consistency and better error propagation
* s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of ↵Michael Adam2011-10-112-7/+11
| | | | | | bool) for consistency and better error propagation
* s3:dbwrap: convert dbwrap_fetch_int32() to NTSTATUS return codeMichael Adam2011-10-112-7/+12
| | | | | | Return the int32 value retrieved from the db by reference. Before this, return value "-1" was used as a error indication, but it could also be a valid value from the database.
* s3:dbwrap: move definitions of db_record and db_contect structs to ↵Michael Adam2011-10-115-35/+40
| | | | | | dbwrap_private.h The API and callers now only need the forward declarations.
* s3:dbwrap: convert dbwrap_util.c to use dbwrap wrapper functionsMichael Adam2011-10-111-33/+41
|
* s3:dbwrap: use dbwrap_fetch_bystring() in dbwrap_fetch_[u]int32()Michael Adam2011-10-111-2/+6
|
* s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and ↵Michael Adam2011-10-113-21/+23
| | | | dbwrap_fetch_bystring_upper() to NTSTATUS
* s3:dbwrap: add dbwrap_fetch_locked(), a wrapper for db->fetch_lockedMichael Adam2011-10-112-0/+10
|
* s3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_recMichael Adam2011-10-112-0/+6
|
* s3:dbwrap: add dbwrap_record_store(), a wrapper for record->storeMichael Adam2011-10-112-0/+6
|
* s3:dbwrap: add get-functions for db_record key, value and private_dataMichael Adam2011-10-112-0/+19
|
* s3:dbwrap: add wrapper function dbwrap_get_seqnum()Michael Adam2011-10-112-0/+6
|
* s3:dbwrap: add wrappers for transactions start/cancel/commitMichael Adam2011-10-112-0/+18
|
* s3:dbwrap: add wrapper dbwrap_get_flags()Michael Adam2011-10-112-0/+6
|
* s3:dbwrap: fix db_rbt_traverse() to return the record count on successGregor Beck2011-10-111-5/+14
| | | | | | this makes it consistent with documented behaviour of tdb_traverse() Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_rbtGregor Beck2011-10-111-0/+14
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_tdbGregor Beck2011-10-111-0/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add a commentMichael Adam2011-10-111-0/+4
|
* s3:dbwrap: add function dbwrap_wipe()Gregor Beck2011-10-114-0/+29
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add specific dbwrap_parse_record() implementation to dbwrap_rbtGregor Beck2011-10-111-0/+15
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: implement dbwrap_fallback_exists() with dbwrap_parse_record()Gregor Beck2011-10-111-10/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: allow NULL parser for dbwrap_parse_record()Gregor Beck2011-10-111-0/+9
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: dbwrap_parse_record() should always return -1 on "not found"Gregor Beck2011-10-111-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add function dbwrap_parse_record()Gregor Beck2011-10-112-0/+16
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_rbtGregor Beck2011-10-111-0/+6
|
* s3:dbwrap: factor out db_rpt_search_internal()Gregor Beck2011-10-111-46/+43
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_tdbGregor Beck2011-10-111-0/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add function dbwrap_exists()Gregor Beck2011-10-112-0/+31
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: add a wrapper dbwrap_traverse_read()Michael Adam2011-10-112-0/+22
|
* s3:dbwrap: change the dbwrap_traverse() wrapper to return the count in an ↵Michael Adam2011-10-112-3/+14
| | | | additional parameter
* s3:dbwrap: reorganize dbwrap.h someMichael Adam2011-10-111-5/+8
|
* s3:dbwrap: move dbwrap_traverse() to dbwrap.c, the core of the dbrwap subsystemMichael Adam2011-10-112-9/+8
|
* s3:dbwrap: move dbwrap_store() back to dbwrap.c, the core of the dbwrap ↵Michael Adam2011-10-112-16/+16
| | | | subsystem
* s3:dbwrap: move dbwrap_delete() back to dbwrap.c, the core of the dbwrap ↵Michael Adam2011-10-112-15/+14
| | | | subsystem
* s3:dbwrap: move dbwrap_fetch() back to dbwrap.c, the core of the dbwrap ↵Michael Adam2011-10-112-12/+14
| | | | subsystem
* s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.hMichael Adam2011-10-113-2/+30
|
* s3:dbwrap: move the db_open_file() prototype to a new header dbwrap_file.hMichael Adam2011-10-113-8/+37
|
* s3:dbwrap: move the db_open_tdb() prototype to a new header dbwrap_tdb.hMichael Adam2011-10-114-5/+35
|
* s3:dbwrap: move the db_open_ctdb() prototype to a new header dbwrap_ctdb.hMichael Adam2011-10-114-7/+38
|
* s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ ↵Michael Adam2011-09-281-2/+1
| | | | | | | | | record in traverse It did not compare the last charcter (usually '\0') Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Sep 28 16:54:59 CEST 2011 on sn-devel-104
* s3:dbwrap_ctdb: skip the internal __db_sequence_number__ key from ↵Michael Adam2011-09-201-0/+26
| | | | | | | | | (persistent) traverse and traverse_read This is is used internally in the persistent transactions and should not surface. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Sep 20 07:59:20 CEST 2011 on sn-devel-104