From 8ce37d0d4aa4e6107f79efaf5027f31ea5a17604 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Thu, 13 Nov 2014 22:28:08 -0500 Subject: [PATCH 1/1] libafs: remove "Please install afsd with check server daemon" warning Apparently, ancient versions of afsd did not start the check server daemon (AFSOP_START_CS). The afs_Daemon tries to detect when the check server daemon is not running and issues a warning to upgrade afsd. The afs_Daemon waits for the cache initialization to complete (AFSOP_GO) before detecting if the cache server daemon is started. Unfortunately, when running with memcache, the cache initialization is fast enough to race with the start of the check server daemon, and the "Please install afsd with check server daemon" message is sometimes printed to the syslog. Since all modern versions of afsd do start the check server daemon, this error message is no longer needed, so just remove the message and the flag used to print it on only once. Change-Id: If6a57ca0e6fb7e20a1e104c46416139cf5fe785a Reviewed-on: http://gerrit.openafs.org/11602 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Jeffrey Altman --- src/afs/afs_daemons.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/afs/afs_daemons.c b/src/afs/afs_daemons.c index 538dd59..a78aaaa 100644 --- a/src/afs/afs_daemons.c +++ b/src/afs/afs_daemons.c @@ -136,7 +136,6 @@ afs_Daemon(void) afs_int32 last3MinCheck, last10MinCheck, last60MinCheck, lastNMinCheck; afs_int32 last1MinCheck, last5MinCheck; afs_uint32 lastCBSlotBump; - char cs_warned = 0; AFS_STATCNT(afs_Daemon); @@ -220,11 +219,6 @@ afs_Daemon(void) } if (!afs_CheckServerDaemonStarted) { - /* Do the check here if the correct afsd is not installed. */ - if (!cs_warned) { - cs_warned = 1; - afs_warn("Please install afsd with check server daemon.\n"); - } if (lastNMinCheck + afs_probe_interval < now) { /* only check down servers */ afs_CheckServers(1, NULL); -- 1.9.4