]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
More cache manager initialization calls reshuffling.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 11 Jul 2008 19:17:50 +0000 (21:17 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 11 Jul 2008 19:17:50 +0000 (21:17 +0200)
src/access_log.cc
src/main.cc

index 7b44d7de6c3c4a14921ebea89d621a92bd4fcc5c..c1f63a32419d9202d9977b5713157586819dbfa7 100644 (file)
@@ -1559,6 +1559,9 @@ void
 accessLogInit(void)
 {
     customlog *log;
+
+    accessLogRegisterWithCacheManager();
+
     assert(sizeof(log_tags) == (LOG_TYPE_MAX + 1) * sizeof(char *));
 
     for (log = Config.Log.accesslogs; log; log = log->next) {
@@ -1614,9 +1617,7 @@ void
 accessLogRegisterWithCacheManager()
 {
 #if FORW_VIA_DB
-
     fvdbRegisterWithCacheManager();
-
 #endif
 }
 
@@ -1648,7 +1649,7 @@ fvdbInit(void)
 }
 
 static void
-fvdbRegisterWithCacheManager()
+fvdbRegisterWithCacheManager(void)
 {
     CacheManager *manager=CacheManager::GetInstance();
     manager->registerAction("via_headers", "Via Request Headers", fvdbDumpVia, 0, 1);
index 3461bfcc9714a7f6791cf34e650cf53c7276ca08..bb0fd913a21984269452da998f13d28f9844a0c1 100644 (file)
@@ -964,7 +964,7 @@ mainInitialize(void)
 
         FwdState::initModule();
         /* register the modules in the cache manager menus */
-        accessLogRegisterWithCacheManager();
+        // accessLogRegisterWithCacheManager(); //moved to accessLogInit()
         // asnRegisterWithCacheManager(); //moved to asnInit()
         authenticateRegisterWithCacheManager(&Config.authConfiguration);
 #if USE_CARP