]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
More action registration reshuffling.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 11 Jul 2008 15:47:42 +0000 (17:47 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 11 Jul 2008 15:47:42 +0000 (17:47 +0200)
src/client_db.cc
src/main.cc

index 5d0cf8a75f95627a51bedbef498b7b9061f4ca54..675ec387219481b5ce87d37deb98da65d07a8697 100644 (file)
@@ -78,10 +78,13 @@ clientdbAdd(const IPAddress &addr)
 void
 clientdbInit(void)
 {
+    clientdbRegisterWithCacheManager();
+
     if (client_table)
         return;
 
     client_table = hash_create((HASHCMP *) strcmp, CLIENT_DB_HASH_SIZE, hash_string);
+
 }
 
 void
index 577951149e4763bd3c68064fee31dde134077b22..6694e5260b0ae697d6a6f63dbf751db6054789e2 100644 (file)
@@ -979,17 +979,16 @@ mainInitialize(void)
         //commEPollRegisterWithCacheManager(); //moved to comm_epoll::comm_select_init()
 #endif
 #ifdef USE_KQUEUE
-
-        // commKQueueRegisterWithCacheManager(); //moved to comm_kqueue::comm_select_init()
+        // commKQueueRegisterWithCacheManager(); //moved to comm_kqueue::comm_select_init
 #endif
 #ifdef USE_POLL
-        // commPollRegisterWithCacheManager(); //moved to comm_poll::comm_select_init
+        // commPollRegisterWithCacheManager(); //moved to comm_poll::comm_select_init()
 #endif
 #if defined(USE_SELECT) || defined(USE_SELECT_WIN32)
-        // commSelectRegisterWithCacheManager(); // moved to comm_select::comm_select_init
+        // commSelectRegisterWithCacheManager(); //moved to comm_select::comm_select_init
 #endif
 
-        clientdbRegisterWithCacheManager();
+        //clientdbRegisterWithCacheManager(); //moved to clientdbInit()
 #if DELAY_POOLS
 
         DelayPools::RegisterWithCacheManager();