X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Ftdb.h;fp=ccan%2Ftdb%2Ftdb.h;h=b84e20560021d45034bb4f29df78da30fb4cba30;hp=1254115548d49eca97d1e8683e8d1b2b33400277;hb=4364f6a8e21a8f7c561f121af3a834cf7e0649ce;hpb=110b06ab28f2c40baf0f5014bd8d4e468bcba2ba diff --git a/ccan/tdb/tdb.h b/ccan/tdb/tdb.h index 12541155..b84e2056 100644 --- a/ccan/tdb/tdb.h +++ b/ccan/tdb/tdb.h @@ -56,6 +56,7 @@ extern "C" { #define TDB_SEQNUM 128 /* maintain a sequence number */ #define TDB_VOLATILE 256 /* Activate the per-hashchain freelist, default 5 */ #define TDB_ALLOW_NESTING 512 /* Allow transactions to nest */ +#define TDB_DISALLOW_NESTING 1024 /* Disallow transactions to nest */ /* error codes */ enum TDB_ERROR {TDB_SUCCESS=0, TDB_ERR_CORRUPT, TDB_ERR_IO, TDB_ERR_LOCK,