tdb2: rearrange tdb_context layout so tdb1_context can match
commita14df0f361bfb1dbe25abf9b7b129e99ee6a516f
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:00:13 +0000 (14 07:30 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:00:13 +0000 (14 07:30 +0930)
treee227a72fd09266a093103a96ded5adb57b58db7a
parentf6eee4216f35eced3314e6aeafba4c65872def99
tdb2: rearrange tdb_context layout so tdb1_context can match

By moving all the parts of struct tdb_context which logging and
locking use to the beginning of the structure, we can make
tdb1_context match, and thus pass that directly to the tdb_logerr()
function, and later the locking functions.

This is only necessary until we unify tdb1_context and tdb_context.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 0fd5be2955f8e6487c0f4ab711e2a6958bb8f412)
lib/tdb2/private.h