From 14a0f6de04ff0b7c6a8a0efc8d29e68d2f2ea8d2 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 18 May 2013 20:43:38 -0600 Subject: [PATCH] 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. --- src/cache_cf.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.47.2