lib: Avoid looking at fcntl'ed gencache.tdb
authorVolker Lendecke <vl@samba.org>
Thu, 3 Mar 2016 16:41:34 +0000 (17:41 +0100)
committerRalph Boehme <slow@samba.org>
Mon, 7 Mar 2016 16:58:16 +0000 (17:58 +0100)
commit639b3ca48a8dc4e853aa414ba175768413cb3aa3
tree2a3f1b31d3b9af53ee0ec95a9a1afd4ae0fde194
parentb3dd6fd8a4d77cbb7e4e1110204fb4ddf9d8caf8
lib: Avoid looking at fcntl'ed gencache.tdb

gencache_notrans.tdb is much cheaper to look at than gencache.tdb because it's
mutexed and thus avoids expensive fcntl locks. This patch aggressively uses the
shared _notrans tdb for both positive and negative entries. It's a replacement
for the memcache copy in every process that was removed a few patches ago.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/gencache.c