From: Amos Jeffries Date: Sun, 19 May 2013 02:43:38 +0000 (-0600) Subject: Log an ERROR instead of halting on unknown cache_dir types X-Git-Tag: SQUID_3_3_5~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14a0f6de04ff0b7c6a8a0efc8d29e68d2f2ea8d2;p=thirdparty%2Fsquid.git Log an ERROR instead of halting on unknown cache_dir types Squid-3 can run fine without any configured cache_dir. This assists with upgrade from older Squid-2 where COSS or NULL cache types may be present. It also assists with backward compatibility for any future cache types which may be added in future. --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index 598de58dc0..acbb491289 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1903,8 +1903,10 @@ parse_cachedir(SquidConfig::_cacheSwap * swap) fs = find_fstype(type_str); - if (fs < 0) - self_destruct(); + if (fs < 0) { + debugs(3, DBG_PARSE_NOTE(DBG_IMPORTANT), "ERROR: This proxy does not support the '" << type_str << "' cache type. Ignoring."); + return; + } /* reconfigure existing dir */