smbd: Panic if there's a leak in share_entries.tdb
authorVolker Lendecke <vl@samba.org>
Tue, 3 Dec 2019 11:44:18 +0000 (12:44 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 8 Dec 2019 20:24:31 +0000 (20:24 +0000)
commit0bc3e7499b9a8a9d360f6c9454210f3cad334f90
tree914fc82959a62abbb00b965d72399266c9c50b71
parent415fb7d2df4fdefd8aa78edde29abf64a008341b
smbd: Panic if there's a leak in share_entries.tdb

Hopefully dbwrap_tdb's dbwrap_exists is cheap enough for this to not
impact performance too much. I could not measure any difference in an
open/close benchmark, but at some point things might pile up and we
might have to make this a #ifdef DEVELOPER

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c