ldb: move ldb_kv's filter into pack code
authorAndrew Bartlett <abartlet@samba.org>
Tue, 14 May 2019 23:04:42 +0000 (11:04 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 May 2019 04:03:37 +0000 (04:03 +0000)
commit9310d9088dc21f76b7e8e5f5378ea6d5262192a0
treea6f3191254f2e8ff7c4987fa7ecd11dc3cb4c98b
parent9f9bbb5aac15e8b6f34496e10fac1e94f4736a19
ldb: move ldb_kv's filter into pack code

This patch moves ldb_kv's filter code into the pack code to replace
'only attr list' functionality which will be removed in forthcoming
commit. Unpacking data then filtering the result is not any slower
than the removed 'only attr list' approach.
'only attr list' test repurposed to test unpack -> filter flow.

NOTE: Configure with --abi-check-disable to build this commit. This
patch is part of a set of LDB ABI changes, and the version update is
done on the last commit.

Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/common/ldb_pack.c
lib/ldb/include/ldb_module.h
lib/ldb/ldb_key_value/ldb_kv_search.c
source4/torture/ldb/ldb.c