tdb2: don't cancel transactions on lock failures in tdb1 backend.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:10:13 +0000 (07:40 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 22:10:13 +0000 (07:40 +0930)
commitb4a5c6dcb6c60a32b92772396dadfffa6b721732
treeeb135a99d5966f7e03189d6764a9244ef0d54172
parent88ce92b92efe12f8a7364eb1786d73ec8ecd7884
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.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 8458811a4126c22635b974718bfbf2876c893c37)
lib/tdb2/tdb1_transaction.c