tdb2: return TDB_ERR_RDONLY from transactions on R/O databases, log nesting
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:08 +0000 (15:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:08 +0000 (15:31 +0930)
commit27647f94668040d91de377849dce87dabd72be69
tree11163c5edfd662e6eecd24c5e879df0f3d341bf5
parenta3e4ebff2eb9dc2e386160b8acf77d70236f4def
tdb2: return TDB_ERR_RDONLY from transactions on R/O databases, log nesting

Rather than rturning TDB_ERR_EINVAL, return TDB_ERR_RDONLY, and log
when we fail due to nesting.
ccan/tdb2/tdb1_transaction.c
ccan/tdb2/test/run-tdb1-nested-transactions.c