lib ldb key_value: Set index cache size on open
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 1 Apr 2019 03:33:52 +0000 (16:33 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Apr 2019 06:40:17 +0000 (06:40 +0000)
commit69408654b7656189de0c37b0994c668a14e518a3
tree2f738a8884cea684056aef1a20482b8cad447ca2
parent0952f98e41558acdd2b9732a28f9469b2be4c757
lib ldb key_value: Set index cache size on open

Set the default index cache from the passed option
"transaction_index_cache_size" on open.  This allows the default cache
size to be overridden when processing large transactions i.e. joining a
large domain.

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