1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/lib/ldb/ldb_key_value
Douglas Bagnall 226b0a20bd ldb_kv_index: dn_list load sub transaction can re-use keys
We don't want to modify the original list, but we can reuse the keys
if we treat them as immutable and don't free them. That makes it a lot
quicker if there are many keys (i.e. where an index is useful) and may
sub-transactions. In particular, it avoids O(n²) talloc_memdups.

A removed comment that says "We have to free the top level index
memory otherwise we would leak", and this will be addressed in the
next commit.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15590

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 5f0198d698)
2024-10-07 08:33:18 +00:00
..
ldb_kv_cache.c lib:ldb:ldb_key_value: Fix code spelling 2023-04-04 07:31:36 +00:00
ldb_kv_index.c ldb_kv_index: dn_list load sub transaction can re-use keys 2024-10-07 08:33:18 +00:00
ldb_kv_search.c CVE-2023-0614 ldb: Filter on search base before redacting message 2023-04-05 02:10:35 +00:00
ldb_kv.c ldb: Fix code spelling 2023-10-25 22:23:37 +00:00
ldb_kv.h CVE-2023-0614 ldb: Make use of ldb_filter_attrs_in_place() 2023-04-05 02:10:35 +00:00