Attention is currently required from: Frank Filz.

Lior Suliman would like Frank Filz to review this change.

View Change

Use idmapper_negative_cache for uid when fetching groups.

If fetching groups for uid failed, meaning uid does not
exist, we would previously loop trying to get the groups
for that uid on every request.
This commit implements the negative cache, to avoid the loop.

Added uid negative lookup, and save into the cache if not found.

Change-Id: Ia6ce0d4fb513d4464e0d837956a540d2962b42ee
Signed-off-by: Lior Suliman <liorsu@gmail.com>
---
M src/support/uid2grp.c
1 file changed, 37 insertions(+), 1 deletion(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/75/1215675/1

To view, visit change 1215675. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ia6ce0d4fb513d4464e0d837956a540d2962b42ee
Gerrit-Change-Number: 1215675
Gerrit-PatchSet: 1
Gerrit-Owner: Lior Suliman <liorsu@google.com>
Gerrit-Reviewer: Frank Filz <ffilzlnx@mindspring.com>
Gerrit-Attention: Frank Filz <ffilzlnx@mindspring.com>