idmap: Prime gencache after xids2sids calls
authorVolker Lendecke <vl@samba.org>
Tue, 20 Dec 2016 15:22:48 +0000 (16:22 +0100)
committerUri Simchoni <uri@samba.org>
Tue, 27 Dec 2016 19:20:27 +0000 (20:20 +0100)
commitf7f49a2354c99d95a302f070fe3aa97a949063c8
tree1d7e80f3aee3cf119ac5d1b5de02a7d0c2413fda
parent9079dc4f4501c4e868f46de41b82927b69dc78d5
idmap: Prime gencache after xids2sids calls

This fixes a performance regression for "hide unreadable". With an empty
gencache, we only do xid2sid calls when reading a large number of acls. We
lost caching the xid2sid calls while implmenting the multiple-id calls,
probably because at that time the bug with ID_TYPE_BOTH backends was still
pending. This patch restores the xid2sid caching hopefully correctly.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12484

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/winbindd/wb_xids2sids.c