Date: Tue, 21 Nov 2006 16:19:05 GMT From: Michael Bushkov <bushman@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 110297 for review Message-ID: <200611211619.kALGJ5cC045916@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110297 Change 110297 by bushman@bushman_nss_ldap_cached on 2006/11/20 14:11:17 Parser and configuration updated to support "check-files" configuration directive. Affected files ... .. //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/cached/agent.c#8 edit .. //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/cached/config.c#8 edit .. //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/cached/config.h#8 edit .. //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/cached/parser.c#7 edit Differences ... ==== //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/cached/agent.c#8 (text) ==== @@ -240,8 +240,9 @@ { int retval; - TRACE_IN(agent_check_changes); - if ((agent_ == NULL) || (agent_->check_changes_func == NULL)) { + TRACE_IN(agent_check_changes); + if ((agent_ == NULL) || (agent_->check_changes_func == NULL) || + (!(config_entry->flags & CONFIG_ENTRY_CHECK_FOR_CHANGES_FLAG))) { TRACE_OUT(agent_check_changes); return (0); } ==== //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/cached/config.c#8 (text) ==== @@ -149,6 +149,7 @@ return (NULL); } memset(retval, 0, sizeof(struct configuration_entry)); + retval->flags = CONFIG_ENTRY_CHECK_FOR_CHANGES_FLAG; res = pthread_mutex_init(&retval->positive_cache_lock, NULL); if (res != 0) { ==== //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/cached/config.h#8 (text) ==== @@ -61,7 +61,7 @@ #define CONFIG_ENTRY_PERFORM_ACTUAL_LOOKUPS_FLAG (1 << 1) #define CONFIG_ENTRY_PRECACHING_ENABLED_FLAG (1 << 2) #define CONFIG_ENTRY_PRECACHING_NO_AUTO_FLUSH_FLAG (1 << 3) - +#define CONFIG_ENTRY_CHECK_FOR_CHANGES_FLAG (1 << 4) extern const char *c_default_entries[6]; ==== //depot/projects/soc2006/nss_ldap_cached/src/usr.sbin/cached/parser.c#7 (text) ====
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611211619.kALGJ5cC045916>