safe_free(carp_peers);
n_carp_peers = 0;
+
+ /* initialize cache manager before we have a chance to leave the execution path */
+ carpRegisterWithCacheManager();
+
/* find out which peers we have */
for (p = Config.peers; p; p = p->next) {
if (kdpfd < 0) {
fatalf("comm_select_init: epoll_create(): %s\n",xstrerror());
}
+
+ commEPollRegisterWithCacheManager();
}
static const char* epolltype_atoi(int x)
// asnRegisterWithCacheManager(); //moved to asnInit()
authenticateRegisterWithCacheManager(&Config.authConfiguration);
#if USE_CARP
-
- carpRegisterWithCacheManager();
+ // carpRegisterWithCacheManager(); //moved to carpInit()
#endif
cbdataRegisterWithCacheManager();
* coexist.
*/
#ifdef USE_EPOLL
-
- commEPollRegisterWithCacheManager();
+ //commEPollRegisterWithCacheManager(); //moved to comm_epoll::comm_select_init()
#endif
#ifdef USE_KQUEUE