lib ldb key value: Remove check_parent from ldb_kv_index_idxptr()
authorGary Lockyer <gary@catalyst.net.nz>
Fri, 21 Jun 2019 02:52:24 +0000 (14:52 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jun 2019 04:27:12 +0000 (04:27 +0000)
commit1a52b03b2f4c1503b52784f1a01f8291b78e7604
tree3305fe5f6538f82548f1b7edc1bc3a78a7d2584f
parent201684e59fd417ca913cb1d2d099e91b57dace6c
lib ldb key value: Remove check_parent from ldb_kv_index_idxptr()

The callers will soon have two possible parents for this pointer, so
we need to remove this check, which was added out of caution given
the rather strange pattern of putting an active memory pointer into a
TDB (as a hash map).

That is, the only callers that did call this with "true" would
have to call this with "false", so just remove the complexity.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_key_value/ldb_kv_index.c