summaryrefslogtreecommitdiff
path: root/lib/ntdb/test/api-95-read-only-during-parse.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-22ntdb: make database read-only during ntdb_parse() callback.Rusty Russell1-0/+94
Since we have a readlock, any write will grab a write lock: if it happens to be on the same bucket, we'll fail. For that reason, enforce read-only so every write operation fails (even for NTDB_NOLOCK or NTDB_INTERNAL dbs), and document it! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>