projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4364f6a
)
Change default behaviour: disallow nesting (safer).
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 2 Feb 2010 01:38:41 +0000
(12:08 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 2 Feb 2010 01:38:41 +0000
(12:08 +1030)
Unlike the upstream, we don't have a stable ABI/API.
ccan/tdb/open.c
patch
|
blob
|
history
diff --git
a/ccan/tdb/open.c
b/ccan/tdb/open.c
index 1d6b3ed75ab084033723122c71857a1f8d5e84d5..ed32cf327f0dd8a21fe86a39ae380c5d5f0a6c99 100644
(file)
--- 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_
DIS
ALLOW_NESTING)) {
- tdb->flags |= TDB_ALLOW_NESTING;
+ if (!(tdb->flags & TDB_ALLOW_NESTING)) {
+ tdb->flags |= TDB_
DIS
ALLOW_NESTING;
}
/* internal databases don't mmap or lock, and start off cleared */