ldb:tests: Add test encoding current locking behaviour during ldb_search()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 22 May 2017 04:18:20 +0000 (16:18 +1200)
committerStefan Metzmacher <metze@samba.org>
Sun, 2 Jul 2017 15:35:19 +0000 (17:35 +0200)
commit31ef1d6211f4bc448beca8da5d584624ba1ed68f
treee522cea92fb800a644be40a5212f029c566d22e2
parent0cd75c1fb1fc29cde581f1546e12de823f82af47
ldb:tests: Add test encoding current locking behaviour during ldb_search()

Currently, a lock is not held against modifications once the final
record is returned via a callback, so modifications can be made
during the DONE callback.  This makes it hard to write modules
that interpert an ldb search result and do further processing
so will change in the future to allow the full search to be
atomic.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/tests/ldb_mod_op_test.c