summaryrefslogtreecommitdiff
path: root/lib/tdb/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-11-19 09:34:05 +0100
committerStefan Metzmacher <metze@samba.org>2009-11-20 09:45:36 +0100
commit3b9f19ed919fef2e88b2f92ae541e07bc7379cd1 (patch)
tree5f7d072e56ab7ee22549051cffcc64a4a3694679 /lib/tdb/include
parent436b55db1ff238ec467b07a74b088f6fcfaf927c (diff)
downloadsamba-3b9f19ed919fef2e88b2f92ae541e07bc7379cd1.tar.gz
samba-3b9f19ed919fef2e88b2f92ae541e07bc7379cd1.tar.bz2
samba-3b9f19ed919fef2e88b2f92ae541e07bc7379cd1.zip
tdb: add TDB_DISALLOW_NESTING and make TDB_ALLOW_NESTING the default behavior
We need to keep TDB_ALLOW_NESTING as default behavior, so that existing code continues to work. However we may change the default together with a major version number change in future. metze
Diffstat (limited to 'lib/tdb/include')
-rw-r--r--lib/tdb/include/tdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tdb/include/tdb.h b/lib/tdb/include/tdb.h
index 5cc1eecdd1..db9ce4ad27 100644
--- a/lib/tdb/include/tdb.h
+++ b/lib/tdb/include/tdb.h
@@ -49,6 +49,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,