lib ldb key_value: Remove index cache lazy initialisation
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 1 Apr 2019 00:12:20 +0000 (13:12 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Apr 2019 06:40:16 +0000 (06:40 +0000)
commit267cc71f5d55f0c45cde8e60ac1529f6a39d776f
treed5aa92150e23d2e2e49717e99298b0b27e047763
parent5ba049b599b5be2de1eabe548f1b770a5e89acdd
lib ldb key_value: Remove index cache lazy initialisation

Remove the lazy initialisation of the index cache. This make setting
the size of the cache for re-indexing easier, which will be done in
later commits.

Performance testing shows that the removal of lazy initialisation makes
no appreciable difference to performance.

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