From c92d0d635e1dcbb1d7b6f3356d4ac01e6f1d2535 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 2 Feb 2010 12:08:41 +1030 Subject: [PATCH] Change default behaviour: disallow nesting (safer). Unlike the upstream, we don't have a stable ABI/API. --- ccan/tdb/open.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ccan/tdb/open.c b/ccan/tdb/open.c index 1d6b3ed7..ed32cf32 100644 --- a/ccan/tdb/open.c +++ b/ccan/tdb/open.c @@ -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. - * Note: this may change in future versions! + * TDB_DISALLOW_NESTING is the default behavior. */ - if (!(tdb->flags & TDB_DISALLOW_NESTING)) { - tdb->flags |= TDB_ALLOW_NESTING; + if (!(tdb->flags & TDB_ALLOW_NESTING)) { + tdb->flags |= TDB_DISALLOW_NESTING; } /* internal databases don't mmap or lock, and start off cleared */ -- 2.39.2