diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 09:44:41 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-06-22 07:35:17 +0200 |
commit | 01ec4a72de56ade54bbbc92e0a408771390c5c12 (patch) | |
tree | 1ee7082cac28cee704ebc0eb6e76d372baa31405 /lib/ntdb/wscript | |
parent | bd5c061932d9aaf2e66cd56a39743c9ff34c3a88 (diff) | |
download | samba-01ec4a72de56ade54bbbc92e0a408771390c5c12.tar.gz samba-01ec4a72de56ade54bbbc92e0a408771390c5c12.tar.bz2 samba-01ec4a72de56ade54bbbc92e0a408771390c5c12.zip |
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 <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/ntdb/wscript')
-rw-r--r-- | lib/ntdb/wscript | 1 |
1 files changed, 1 insertions, 0 deletions
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', |