ldb_tdb: Rework ltdb_modify_internal() to use ltdb_search_dn1() internally
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Aug 2017 00:51:09 +0000 (12:51 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 29 Aug 2017 09:13:50 +0000 (11:13 +0200)
commit3164c0ac54685d6ae430e2cb3bb50a9ad7f3e7fc
tree55dae35c5417240756569590d24d91c652f293ef
parentbff81a2c9cc43a2cfec822dde94944d0295dd87f
ldb_tdb: Rework ltdb_modify_internal() to use ltdb_search_dn1() internally

This avoids duplicate code and allows us to use the allocation-avoiding
LDB_UNPACK_DATA_FLAG_NO_DATA_ALLOC flag.

We can not use LDB_UNPACK_DATA_FLAG_NO_VALUES_ALLOC as el2->values
is talloc_realloc()ed in the routine.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 29 11:13:50 CEST 2017 on sn-devel-144
lib/ldb/ldb_tdb/ldb_tdb.c