From: Francesco Chemolli Date: Fri, 11 Jul 2008 15:47:42 +0000 (+0200) Subject: More action registration reshuffling. X-Git-Tag: SQUID_3_1_0_1~49^2~143^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfaf75a7589895ff32736da72d9748198b8b4049;p=thirdparty%2Fsquid.git More action registration reshuffling. --- diff --git a/src/client_db.cc b/src/client_db.cc index 5d0cf8a75f..675ec38721 100644 --- a/src/client_db.cc +++ b/src/client_db.cc @@ -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 diff --git a/src/main.cc b/src/main.cc index 577951149e..6694e5260b 100644 --- a/src/main.cc +++ b/src/main.cc @@ -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();