Dipit Grover has uploaded this change for review.
idmapper_cache: Do not destroy the cache locks when clearing the caches
This fixes a bug where calling cache-clear will also destroy the cache
locks, hence causing the caches to become un-usable.
We extract cache-cleanup into a separate function, which will clear the
caches and additionally also destroy the cache locks. The original
cache-clear function will do only clearing of the caches.
Change-Id: I531cf293be093f31a0a3d89db67808286c5a6a49
Signed-off-by: Dipit Grover <dipit@google.com>
---
M src/idmapper/idmapper.c
M src/idmapper/idmapper_cache.c
M src/include/idmapper.h
3 files changed, 11 insertions(+), 2 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/37/1176637/1
To view, visit change 1176637. To unsubscribe, or for help writing mail filters, visit settings.