tdb2: Make tdb1 use the tdb_file structure.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:07:13 +0000 (07:37 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:07:13 +0000 (07:37 +0930)
commitc5b7c4aea8a1d2be1d61c3b909177cb5ef07fd62
treedb52ef46f4f127ffba98916a42b73eff780450af
parent5a3f207318bee2fc2236ac1e19eda8ac2ae80829
tdb2: Make tdb1 use the tdb_file structure.

Because tdb2 allows multiple opens of the same TDB, we separate out
the file information from the struct tdb_context.  Do the same for
tdb1.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 60210a73ec08a7b34ba637ad19e6749cf6dc1952)
12 files changed:
lib/tdb2/private.h
lib/tdb2/tdb1_check.c
lib/tdb2/tdb1_io.c
lib/tdb2/tdb1_lock.c
lib/tdb2/tdb1_open.c
lib/tdb2/tdb1_private.h
lib/tdb2/tdb1_summary.c
lib/tdb2/tdb1_tdb.c
lib/tdb2/tdb1_transaction.c
lib/tdb2/test/run-tdb1-3G-file.c
lib/tdb2/test/run-tdb1-corrupt.c
lib/tdb2/test/run-tdb1-die-during-transaction.c