From 01ec4a72de56ade54bbbc92e0a408771390c5c12 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 22 Jun 2012 09:44:41 +0930 Subject: ntdb: make database read-only during ntdb_parse() callback. 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 --- lib/ntdb/wscript | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/ntdb/wscript') diff --git a/lib/ntdb/wscript b/lib/ntdb/wscript index f034631058..e211a9fc0c 100644 --- a/lib/ntdb/wscript +++ b/lib/ntdb/wscript @@ -79,6 +79,7 @@ def configure(conf): 'test/api-91-get-stats.c', 'test/api-92-get-set-readonly.c', 'test/api-93-repack.c', + 'test/api-95-read-only-during-parse.c', 'test/api-add-remove-flags.c', 'test/api-check-callback.c', 'test/api-firstkey-nextkey.c', -- cgit