summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap/dbwrap_open.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-27s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett1-1/+1
This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
2012-06-22dbwrap: dbwrap_local_open()Rusty Russell1-3/+3
This simply opens a tdb: it will eventually switch depending on the extension. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-04-18s3-dbwrap: push lp_ctx up another layer in the stackAndrew Bartlett1-1/+4
This will allow db_open_tdb() to be called from common code, which may already have a loadparm context loaded. It also slowly moves the lp_ctx up the stack, as required to remove the library loop between smbconf and the registry. Andrew Bartlett
2012-04-17s3: Open up 3 levels of dbwrap_lock_orderVolker Lendecke1-4/+7
2012-04-17s3: Return CTDB_PATH from lp_ctdbd_socket()Volker Lendecke1-8/+0
All callers had that fallback
2012-03-16s3-dbwrap: Move "lock_order" initialization to db_open_xxVolker Lendecke1-4/+2
2012-01-18s3: Pass down lock_order to db_open_ctdbVolker Lendecke1-1/+2
2012-01-18s3: Enforce a lock order in dbwrapVolker Lendecke1-0/+3
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.
2012-01-18s3: Add a "lock_order" argument to db_openVolker Lendecke1-2/+17
This will be used to enforce a lock hierarchy between the databases. We have seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb. These should be fixed by refusing a dbwrap_fetch_locked that does not follow a defined lock hierarchy.
2011-12-08s3-dbwrap: Make dbwrap_fallback_wipe privateVolker Lendecke1-5/+0
2011-12-08s3-dbwrap: Make dbwrap_fallback_parse_record privateVolker Lendecke1-3/+0
We have the private fallback in dbwrap_parse_record anyway
2011-12-08s3-dbwrap: Make dbwrap_fallback_fetch privateVolker Lendecke1-3/+0
2011-12-08s3: Fix some blank line endingsVolker Lendecke1-3/+3
2011-10-11s3:dbwrap: add function dbwrap_wipe()Gregor Beck1-0/+3
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11s3:dbwrap: move the db_open_tdb() prototype to a new header dbwrap_tdb.hMichael Adam1-0/+1
2011-10-11s3:dbwrap: move the db_open_ctdb() prototype to a new header dbwrap_ctdb.hMichael Adam1-0/+1
2011-07-29s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam1-1/+1
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 Adam1-0/+27
2011-07-29s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam1-0/+92
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.