Commit c92d0d63 authored by Rusty Russell's avatar Rusty Russell

Change default behaviour: disallow nesting (safer).

Unlike the upstream, we don't have a stable ABI/API.
parent 4364f6a8
...@@ -213,11 +213,10 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags, ...@@ -213,11 +213,10 @@ struct tdb_context *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
} }
/* /*
* TDB_ALLOW_NESTING is the default behavior. * TDB_DISALLOW_NESTING is the default behavior.
* Note: this may change in future versions!
*/ */
if (!(tdb->flags & TDB_DISALLOW_NESTING)) { if (!(tdb->flags & TDB_ALLOW_NESTING)) {
tdb->flags |= TDB_ALLOW_NESTING; tdb->flags |= TDB_DISALLOW_NESTING;
} }
/* internal databases don't mmap or lock, and start off cleared */ /* internal databases don't mmap or lock, and start off cleared */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment