tdb2: fix error handling for tdb1_transaction_commit.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 2 Sep 2011 06:18:17 +0000 (15:48 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 2 Sep 2011 06:18:17 +0000 (15:48 +0930)
commitb679512e4260b9847e2f846b07443e6907d8276f
tree67d8cf222071db360315d6922c55a28f611cebd5
parent077bdae6877d26749987b26a1b5b28cdba5ebbdd
tdb2: fix error handling for tdb1_transaction_commit.

tdb_repack() returns an enum TDB_ERROR, whereas
tdb1_transaction_commit is expected to return 0 or -1.
ccan/tdb2/tdb1_transaction.c