summaryrefslogtreecommitdiff
path: root/source3/lib/dbwrap/dbwrap_open.c
AgeCommit message (Collapse)AuthorFilesLines
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.