From owner-p4-projects@FreeBSD.ORG Tue Nov 21 16:21:13 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E247616B3D1; Tue, 21 Nov 2006 16:21:12 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C084216B3CE for ; Tue, 21 Nov 2006 16:21:12 +0000 (UTC) (envelope-from bushman@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34E6643DB9 for ; Tue, 21 Nov 2006 16:19:01 +0000 (GMT) (envelope-from bushman@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kALGJ6dr045919 for ; Tue, 21 Nov 2006 16:19:06 GMT (envelope-from bushman@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kALGJ5cC045916 for perforce@freebsd.org; Tue, 21 Nov 2006 16:19:05 GMT (envelope-from bushman@freebsd.org) Date: Tue, 21 Nov 2006 16:19:05 GMT Message-Id: <200611211619.kALGJ5cC045916@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bushman@freebsd.org using -f From: Michael Bushkov To: Perforce Change Reviews Cc: Subject: PERFORCE change 110297 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2006 16:21:13 -0000 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) ====