summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap
AgeCommit message (Collapse)AuthorFilesLines
2011-10-11s3:dbwrap: add wrapper function dbwrap_get_seqnum()Michael Adam2-0/+6
2011-10-11s3:dbwrap: add wrappers for transactions start/cancel/commitMichael Adam2-0/+18
2011-10-11s3:dbwrap: add wrapper dbwrap_get_flags()Michael Adam2-0/+6
2011-10-11s3:dbwrap: fix db_rbt_traverse() to return the record count on successGregor Beck1-5/+14
this makes it consistent with documented behaviour of tdb_traverse() Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_rbtGregor Beck1-0/+14
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_tdbGregor Beck1-0/+8
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add a commentMichael Adam1-0/+4
2011-10-11s3:dbwrap: add function dbwrap_wipe()Gregor Beck4-0/+29
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add specific dbwrap_parse_record() implementation to dbwrap_rbtGregor Beck1-0/+15
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: implement dbwrap_fallback_exists() with dbwrap_parse_record()Gregor Beck1-10/+2
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: allow NULL parser for dbwrap_parse_record()Gregor Beck1-0/+9
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: dbwrap_parse_record() should always return -1 on "not found"Gregor Beck1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add function dbwrap_parse_record()Gregor Beck2-0/+16
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_rbtGregor Beck1-0/+6
2011-10-11s3:dbwrap: factor out db_rpt_search_internal()Gregor Beck1-46/+43
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_tdbGregor Beck1-0/+8
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add function dbwrap_exists()Gregor Beck2-0/+31
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: add a wrapper dbwrap_traverse_read()Michael Adam2-0/+22
2011-10-11s3:dbwrap: change the dbwrap_traverse() wrapper to return the count in an ↵Michael Adam2-3/+14
additional parameter
2011-10-11s3:dbwrap: reorganize dbwrap.h someMichael Adam1-5/+8
2011-10-11s3:dbwrap: move dbwrap_traverse() to dbwrap.c, the core of the dbrwap subsystemMichael Adam2-9/+8
2011-10-11s3:dbwrap: move dbwrap_store() back to dbwrap.c, the core of the dbwrap ↵Michael Adam2-16/+16
subsystem
2011-10-11s3:dbwrap: move dbwrap_delete() back to dbwrap.c, the core of the dbwrap ↵Michael Adam2-15/+14
subsystem
2011-10-11s3:dbwrap: move dbwrap_fetch() back to dbwrap.c, the core of the dbwrap ↵Michael Adam2-12/+14
subsystem
2011-10-11s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.hMichael Adam3-2/+30
2011-10-11s3:dbwrap: move the db_open_file() prototype to a new header dbwrap_file.hMichael Adam3-8/+37
2011-10-11s3:dbwrap: move the db_open_tdb() prototype to a new header dbwrap_tdb.hMichael Adam4-5/+35
2011-10-11s3:dbwrap: move the db_open_ctdb() prototype to a new header dbwrap_ctdb.hMichael Adam4-7/+38
2011-09-28s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ ↵Michael Adam1-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
2011-09-20s3:dbwrap_ctdb: skip the internal __db_sequence_number__ key from ↵Michael Adam1-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
2011-09-14dbwrap_tdb: handle tdb2 return values properly.Rusty Russell1-4/+4
TDB2 versions of tdb_parse_record etc return an error code, not -1. Turn those into -1/0 in dbwrap_tdb to insulate the rest of the code from that change. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-09-07s3:dbwrap_ctdb: improve error message in transaction destructorGregor Beck1-1/+2
Signed-off-by: Michael Adam <obnox@samba.org>
2011-08-30s3: Silence some warningsVolker Lendecke1-0/+19
Rusty, please suggest a proper fix for this. Thanks, Volker Lendecke Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Aug 30 19:16:14 CEST 2011 on sn-devel-104
2011-08-25s3:dbwrap_tdb: correctly catch the error from the return code of tdb_parse ↵Michael Adam1-1/+6
in db_tdb_fetch()
2011-08-15s3:dbwrap_ctdb: improve transaction start/commit/cancel debuggingMichael Adam1-2/+8
* also log nesting transaction start/commit/cancel * unify transaction log messages slightly
2011-07-29s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam8-1/+3423
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
2011-07-29s3:dbwrap: move db_is_local() from dbwrap.c to dbwrap_open.cMichael Adam2-0/+33
2011-07-29s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam3-0/+167
Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.