ldb_wrap: Remove the magic cache of database handles except for sam.ldb
authorAndrew Bartlett <abartlet@samba.org>
Thu, 15 Mar 2018 00:44:52 +0000 (13:44 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Apr 2018 03:15:17 +0000 (05:15 +0200)
commita7cdec9ded016d6a1996a0d68dc9b7b029e78c7f
treef96d1631bb5365e0075980017a95030a03facdb2
parent132e932da2f203d005abea4412fcf2c483b7c489
ldb_wrap: Remove the magic cache of database handles except for sam.ldb

sam.ldb is handled in samdb_connect_url(), not this function.

This cache caused issues when "private dir" was changed in a testing script, but also
just generates many-owner shared mutable state that is frowned upon these days.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb-samba/ldb_wrap.c