ldb: Add flags to ltdb_search_dn1() to control memory allocation
commite517d68a8f2772b863a7c072bd95d224b4ab8bf4
authorAndrew Bartlett <abartlet@samba.org>
Tue, 26 Jul 2016 12:20:27 +0000 (27 00:20 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Jul 2016 08:06:12 +0000 (28 10:06 +0200)
tree7b2b8b770dc70df6014e10ac7df6786524526c38
parentb465161aaaf79d62a68193f09e4409e363df434f
ldb: Add flags to ltdb_search_dn1() to control memory allocation

This is used in the index code in particular to avoid an allocation per value
(as there may be one value per DB object at times

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

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