mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
parent
1e1f6e4e8f
commit
8ce37d0d4a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user