summaryrefslogtreecommitdiffstats
path: root/source3/lib/dbwrap/dbwrap_rbt.c
Commit message (Collapse)AuthorAgeFilesLines
* move the dbwrap library to the top levelMichael Adam2012-05-141-450/+0
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon May 14 04:04:55 CEST 2012 on sn-devel-104
* s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_rbt.cMichael Adam2012-05-131-2/+2
|
* s3-dbwrap: Add dbwrap_set_stored_callbackVolker Lendecke2012-04-201-0/+1
| | | | This is a per-db function that is called whenever some record is modified
* s3-dbwrap: Add dbwrap_db_idVolker Lendecke2012-04-201-0/+7
| | | | This returns a blob uniquely identifying the database
* s3: Add dbwrap_try_fetch_lockedVolker Lendecke2012-04-171-0/+1
| | | | | | | | | | This is designed to spread the load on individual ctdb records to allow upper layers to do backoff mechanisms. In the ctdb case, do not get the record if a local lock is already taken. If we are not dmaster, do at most one migrate attempt. For the tdb case, this is a nonblocking fetch_locked. If someone else has the lock, give up.
* s3: Enforce a lock order in dbwrapVolker Lendecke2012-01-181-0/+1
| | | | | | | This makes sure we do not deadlock from doing two dbwrap_fetch_locked in two processes in different orders. At open time, we assign a strict order to all databases. lock_order 1 will be locked first, lock_order 2 second. No two records of the same lock order may be locked at the same time.
* s3-dbwrap: Remove the "fetch" db_context callbackVolker Lendecke2011-12-151-24/+0
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-dbwrap: Make dbwrap_parse_record return NTSTATUSVolker Lendecke2011-12-151-6/+7
| | | | | | | Also, the parser now returns void. The parser is called if and only if dbwrap_parse_record returns NT_STATUS_OK. Signed-off-by: Michael Adam <obnox@samba.org>
* s3:dbwrap: turn the fetch dbwrap method to NTSTATUS return code.Michael Adam2011-11-291-5/+5
| | | | | This implement more correct NTSTATUS handling inside the backends. This ensures that data.dptr != NULL if return code is NT_STATUS_OK.
* s3:dbwrap: move definitions of db_record and db_contect structs to ↵Michael Adam2011-10-111-0/+1
| | | | | | dbwrap_private.h The API and callers now only need the forward declarations.
* 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_parse_record() implementation to dbwrap_rbtGregor Beck2011-10-111-0/+15
| | | | 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: move the db_open_rbt() prototype to a new header dbwrap_rbt.hMichael Adam2011-10-111-0/+1
|
* s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam2011-07-291-0/+420
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104