tdb2: don't cancel transactions on lock failures in tdb1 backend.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 05:56:16 +0000 (15:26 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 05:56:16 +0000 (15:26 +0930)
commit8458811a4126c22635b974718bfbf2876c893c37
tree2667c839d3b0bfa7f6a7a2662abaca2e04ed17de
parenta391b2b900bc6d5c0467869a454bdb5c51b5a3be
tdb2: don't cancel transactions on lock failures in tdb1 backend.

In TDB2, the user can override locking functions, so they may
deliberarely fail (eg. be non-blocking) expecting to retry.

For this reason, the TDB2 API requires the caller to cancel the
transaction if tdb_transaction_prepare_commit() fails.
ccan/tdb2/tdb1_transaction.c