X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Fopen.c;h=ed32cf327f0dd8a21fe86a39ae380c5d5f0a6c99;hb=9d045ca09a0b052d968e11d98540f63a8a0aa412;hp=1d6b3ed75ab084033723122c71857a1f8d5e84d5;hpb=4364f6a8e21a8f7c561f121af3a834cf7e0649ce;p=ccan 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 */