summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap/dbwrap_rbt.c
AgeCommit message (Collapse)AuthorFilesLines
2012-05-13s3:lib:dbwrap: use [u]int[num]_t consistently in dbwrap_rbt.cMichael Adam1-2/+2
2012-04-20s3-dbwrap: Add dbwrap_set_stored_callbackVolker Lendecke1-0/+1
This is a per-db function that is called whenever some record is modified
2012-04-20s3-dbwrap: Add dbwrap_db_idVolker Lendecke1-0/+7
This returns a blob uniquely identifying the database
2012-04-17s3: Add dbwrap_try_fetch_lockedVolker Lendecke1-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.
2012-01-18s3: Enforce a lock order in dbwrapVolker Lendecke1-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.
2011-12-15s3-dbwrap: Remove the "fetch" db_context callbackVolker Lendecke1-24/+0
Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-15s3-dbwrap: Make dbwrap_parse_record return NTSTATUSVolker Lendecke1-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>
2011-11-29s3:dbwrap: turn the fetch dbwrap method to NTSTATUS return code.Michael Adam1-5/+5
This implement more correct NTSTATUS handling inside the backends. This ensures that data.dptr != NULL if return code is NT_STATUS_OK.
2011-10-11s3:dbwrap: move definitions of db_record and db_contect structs to ↵Michael Adam1-0/+1
dbwrap_private.h The API and callers now only need the forward declarations.
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_parse_record() implementation to dbwrap_rbtGregor Beck1-0/+15
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: move the db_open_rbt() prototype to a new header dbwrap_rbt.hMichael Adam1-0/+1
2011-07-29s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam1-0/+420
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104