debugs(47, 1, "diskd started");
#endif
initialised = true;
+
+ registerWithCacheManager();
}
void
static DiskDaemonDiskIOModule &GetInstance();
DiskDaemonDiskIOModule();
virtual void init();
- virtual void registerWithCacheManager(void);
virtual void shutdown();
virtual char const *type () const;
virtual DiskIOStrategy* createStrategy();
static void Stats(StoreEntry * sentry);
static DiskDaemonDiskIOModule Instance;
bool initialised;
+ void registerWithCacheManager(void);
};
#endif /* SQUID_DISKDAEMONDISKIOMODULE_H */
*/
}
-void
-DiskIOModule::RegisterAllModulesWithCacheManager(void)
-{
- for (iterator i = GetModules().begin(); i != GetModules().end(); ++i)
- (*i)->registerWithCacheManager();
-}
-
void
DiskIOModule::SetupAllModules()
{
return result;
}
-/* disk modules dont export anything by default */
-void
-DiskIOModule::registerWithCacheManager(void)
-{}
virtual ~DiskIOModule(){}
virtual void init() = 0;
- virtual void registerWithCacheManager(void);
+ //virtual void registerWithCacheManager(void);
virtual void shutdown() = 0;
virtual DiskIOStrategy *createStrategy() = 0;
DiskThreadsIOStrategy::Instance.init();
}
-void
-DiskThreadsDiskIOModule::registerWithCacheManager(void)
-{
- DiskThreadsIOStrategy::Instance.registerWithCacheManager();
-}
-
void
DiskThreadsDiskIOModule::shutdown()
{
static DiskThreadsDiskIOModule &GetInstance();
DiskThreadsDiskIOModule();
virtual void init();
- virtual void registerWithCacheManager(void);
+ //virtual void registerWithCacheManager(void);
virtual void shutdown();
virtual char const *type () const;
virtual DiskIOStrategy* createStrategy();
* hasn't been parsed yet and we don't know how many cache_dirs
* there are, which means we don't know how many threads to start.
*/
+
+ registerWithCacheManager();
}
void
virtual int callback();
virtual void sync();
virtual void init();
- virtual void registerWithCacheManager(void);
void done();
/* Todo: add access limitations */
bool initialised;
private:
static void aioStats(StoreEntry * sentry);
+ void registerWithCacheManager(void);
};
#endif
AuthUser::cacheInit();
else
AuthUser::CachedACLsReset();
+
+ authenticateRegisterWithCacheManager(&Config.authConfiguration);
}
void
DelayPools::Init()
{
LastUpdate = getCurrentTime();
+ RegisterWithCacheManager();
}
void
serverConnectionsOpen();
neighbors_init();
- neighborsRegisterWithCacheManager();
+ // neighborsRegisterWithCacheManager(); //moved to neighbors_init()
storeDirOpenSwapLogs();
/* register the modules in the cache manager menus */
// accessLogRegisterWithCacheManager(); //moved to accessLogInit()
// asnRegisterWithCacheManager(); //moved to asnInit()
- authenticateRegisterWithCacheManager(&Config.authConfiguration);
+ // authenticateRegisterWithCacheManager(&Config.authConfiguration);
+ // moved authenticateInit()
#if USE_CARP
// carpRegisterWithCacheManager(); //moved to carpInit()
#endif
//clientdbRegisterWithCacheManager(); //moved to clientdbInit()
#if DELAY_POOLS
- DelayPools::RegisterWithCacheManager();
+ //DelayPools::RegisterWithCacheManager(); //moved to DelayPools::Init()
#endif
- DiskIOModule::RegisterAllModulesWithCacheManager();
+ //DiskIOModule::RegisterAllModulesWithCacheManager();
+ // moved to each module's init() function
#if USE_DNSSERVERS
dnsRegisterWithCacheManager();
peer *next = NULL;
int fd = theInIcpConnection;
+ neighborsRegisterWithCacheManager();
+
/* setup addrinfo for use */
nul.InitAddrInfo(AI);