ldb: Rework index_transaction_cache_size to allow caller to specify a larger size
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 4 Jul 2019 04:49:29 +0000 (16:49 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 4 Jul 2019 10:02:23 +0000 (10:02 +0000)
commit6226ab3b61091af176abbb40e21deebe2529ceb0
tree7afb798afbb158ab69c3adc9a9f7c3dece55aed4
parentf87472c9e3d70f856eff9b0324cb48d9aed580b3
ldb: Rework index_transaction_cache_size to allow caller to specify a larger size

The previous code would override the caller with the DB size
estimate rather than allowing the caller to force the bigger size.

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