From 1307b891888c61debe2eadd47ddfe8717fc75ddd Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 13 Jan 2005 23:37:21 +0000 Subject: [PATCH] memcache-no-volitems-20050113 Don't try to open VolumeItems when using memcache --- src/afsd/afsd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 7679138958..f8b23e9525 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1932,7 +1932,9 @@ mainproc(as, arock) if (afsd_debug) printf("%s: Calling AFSOP_VOLUMEINFO: volume info file is '%s'\n", rn, fullpn_VolInfoFile); - call_syscall(AFSOP_VOLUMEINFO, fullpn_VolInfoFile); + /* once again, meaningless for a memory-based cache. */ + if (!(cacheFlags & AFSCALL_INIT_MEMCACHE)) + call_syscall(AFSOP_VOLUMEINFO, fullpn_VolInfoFile); /* * Pass the kernel the name of the afs logging file holding the volume