URL: https://github.com/SSSD/sssd/pull/414 Author: lslebodn Title: #414: NSS: Add a way to disable memory cache Action: opened
PR body: """ It is a temporary workaround for case where you hit corner case when restarting sssd very often and different process open different different memory cache. Experimental features are enabled by default in upstream. Resolves: https://pagure.io/SSSD/sssd/issue/3496 """ To pull the PR as Git branch: git remote add ghsssd https://github.com/SSSD/sssd git fetch ghsssd pull/414/head:pr414 git checkout pr414
From 87003d673e2c10d687eb6b63f4d94cf127bff602 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik <lsleb...@redhat.com> Date: Thu, 19 Oct 2017 15:10:23 +0200 Subject: [PATCH] NSS: Add a way to disable memory cache It is a temporary workaround for case where you hit corner case when restarting sssd very often and different process open different different memory cache. Experimental features are enabled by default in upstream. Resolves: https://pagure.io/SSSD/sssd/issue/3496 --- src/conf_macros.m4 | 1 + src/responder/nss/nsssrv_mmap_cache.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/conf_macros.m4 b/src/conf_macros.m4 index 323830b42..929f861fb 100644 --- a/src/conf_macros.m4 +++ b/src/conf_macros.m4 @@ -613,6 +613,7 @@ AC_ARG_ENABLE([all-experimental-features], [build all experimental features])], [build_all_experimental_features=$enableval], [build_all_experimental_features=no]) +AM_CONDITIONAL([ENABLE_EXPERMINETAL], [test x"$build_all_experimental_features" = xyes]) AC_DEFUN([WITH_UNICODE_LIB], diff --git a/src/responder/nss/nsssrv_mmap_cache.c b/src/responder/nss/nsssrv_mmap_cache.c index a87ad646f..8f3a4b845 100644 --- a/src/responder/nss/nsssrv_mmap_cache.c +++ b/src/responder/nss/nsssrv_mmap_cache.c @@ -1218,6 +1218,10 @@ errno_t sss_mmap_cache_init(TALLOC_CTX *mem_ctx, const char *name, int payload; int ret, dret; +#ifdef ENABLE_EXPERMINETAL + if (timeout == 0) return EOK; +#endif + switch (type) { case SSS_MC_PASSWD: payload = SSS_AVG_PASSWD_PAYLOAD;
_______________________________________________ sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org