lib: skip deleted entries in gencache_iterate
commitf857f30236b1143be930ec56f233846d867bd3bd
authorVolker Lendecke <vl@samba.org>
Thu, 3 Mar 2016 14:59:05 +0000 (3 15:59 +0100)
committerRalph Boehme <slow@samba.org>
Mon, 7 Mar 2016 16:58:16 +0000 (7 17:58 +0100)
tree960a85027d83ba47bc35a3ae0737d50c0c6063aa
parentb73235fb54a24d5ece5ac356741a57b18493d56b
lib: skip deleted entries in gencache_iterate

"net cache flush" can give nasty error messages like

Couldn't delete entry! key = IDMAP/UID2SID/12345

These happen when there's an already deleted entry in
gencache_notrans.tdb, indicated by a 0 timeout. This happens if two
gencache_del function calls have happened right after the other and a
gencache_stabilize has not wiped them.

In gencache_iterate, don't show these deleted entries

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