tdb2: transaction support
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Nov 2010 01:38:21 +0000 (12:08 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 23 Nov 2010 01:38:21 +0000 (12:08 +1030)
commit5e8b9af5e7fe5f1ccac407873a3b782b8a629782
tree1e556ed3fb03220595e5d75bde2c4dc145fe7df8
parent49c1b2e371c2fa6c3e74cee8d8222d161454ffe4
tdb2: transaction support

This adds transactions to tdb2; the code is taken from tdb1 with minimal
modifications, as are the unit
36 files changed:
ccan/tdb2/check.c
ccan/tdb2/lock.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/tdb2.h
ccan/tdb2/test/external-agent.c
ccan/tdb2/test/external-agent.h
ccan/tdb2/test/lock-tracking.c [new file with mode: 0644]
ccan/tdb2/test/lock-tracking.h [new file with mode: 0644]
ccan/tdb2/test/run-001-encode.c
ccan/tdb2/test/run-001-fls.c
ccan/tdb2/test/run-01-new_database.c
ccan/tdb2/test/run-02-expand.c
ccan/tdb2/test/run-03-coalesce.c
ccan/tdb2/test/run-04-basichash.c
ccan/tdb2/test/run-10-simple-store.c
ccan/tdb2/test/run-11-simple-fetch.c
ccan/tdb2/test/run-12-store.c
ccan/tdb2/test/run-13-delete.c
ccan/tdb2/test/run-15-append.c
ccan/tdb2/test/run-20-growhash.c
ccan/tdb2/test/run-30-exhaust-before-expand.c
ccan/tdb2/test/run-50-multiple-freelists.c
ccan/tdb2/test/run-55-transaction.c [new file with mode: 0644]
ccan/tdb2/test/run-56-open-during-transaction.c [new file with mode: 0644]
ccan/tdb2/test/run-57-die-during-transaction.c [new file with mode: 0644]
ccan/tdb2/test/run-firstkey-nextkey.c
ccan/tdb2/test/run-missing-entries.c
ccan/tdb2/test/run-record-expand.c
ccan/tdb2/test/run-remap-in-read_traverse.c
ccan/tdb2/test/run-seed.c
ccan/tdb2/test/run-simple-delete.c
ccan/tdb2/test/run-summary.c
ccan/tdb2/test/run-tdb_errorstr.c
ccan/tdb2/test/run-traverse.c
ccan/tdb2/transaction.c [new file with mode: 0644]