tdb: TDB_INCOMPATIBLE_HASH, to allow safe changing of default hash.
[obnox/samba-ctdb.git] / lib / tdb / include / tdb.h
index 245281c02394550b8e9a24bd7e8539590855d37e..26e211012cb04eda4a3a0a53b4f73b4a60223bf4 100644 (file)
@@ -48,6 +48,11 @@ extern "C" {
 #define TDB_NOSYNC   64 /* don't use synchronous transactions */
 #define TDB_SEQNUM   128 /* maintain a sequence number */
 #define TDB_VOLATILE   256 /* Activate the per-hashchain freelist, default 5 */
+#if 0 /* not backported yet */
+#define TDB_ALLOW_NESTING 512 /* Allow transactions to nest */
+#define TDB_DISALLOW_NESTING 1024 /* Disallow transactions to nest */
+#endif
+#define TDB_INCOMPATIBLE_HASH 2048 /* Better hashing: can't be opened by tdb < 1.2.6. */
 
 #define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret)