tdb2: make TDB1 code use tdb2's TDB_ERROR and tdb_logerr()
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:02:13 +0000 (07:32 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:02:13 +0000 (07:32 +0930)
commite613effeae7c9373c9e635fc708ec2ce29661d4c
treed8cdb019f54302de6aa813a62a34e036cf9c7faf
parent50484d4bede6b59706457e44a32cbe2d3e9c28d2
tdb2: make TDB1 code use tdb2's TDB_ERROR and tdb_logerr()

To do this, we make sure that the first few fields of tdb1_context and
tdb_context are the same.

This sweep also fixes up a few paths where we weren't setting
tdb->ecode before our old logging function.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 919937354a331bb964564a11b5a5b80403ff8db9)
23 files changed:
lib/tdb2/private.h
lib/tdb2/tdb1.h
lib/tdb2/tdb1_check.c
lib/tdb2/tdb1_freelist.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/tdb1_traverse.c
lib/tdb2/test/run-tdb1-3G-file.c
lib/tdb2/test/run-tdb1-check.c
lib/tdb2/test/run-tdb1-endian.c
lib/tdb2/test/run-tdb1-incompatible.c
lib/tdb2/test/run-tdb1-nested-transactions.c
lib/tdb2/test/run-tdb1-readonly-check.c
lib/tdb2/test/run-tdb1-rwlock-check.c
lib/tdb2/test/run-tdb1-wronghash-fail.c
lib/tdb2/test/run-tdb1.c
lib/tdb2/test/tdb1-external-agent.c
lib/tdb2/test/tdb1-logging.c