Renamed Dns::getResponsibleHost() to getIPLookupHost()

This commit is contained in:
Ivan Skytte Jørgensen 2016-11-24 16:31:08 +01:00
parent 8e34f85829
commit f13f5d687d
3 changed files with 4 additions and 5 deletions

@ -2518,7 +2518,7 @@ key96_t Dns::getKey ( const char *hostname, int32_t hostnameLen ) {
// . MsgC uses this to see which host is responsible for this key
// which is just a hash96() of the hostname (see getKey() above)
// . returns -1 if not host available to send request to
Host *Dns::getResponsibleHost ( key96_t key ) {
Host *Dns::getIPLookupHost(key96_t key) {
logTrace( g_conf.m_logTraceDns, "BEGIN" );
// get the hostNum that should handle this

2
Dns.h

@ -66,7 +66,7 @@ class Dns {
static key96_t getKey(const char *hostname, int32_t hostnameLen);
Host *getResponsibleHost(key96_t key);
Host *getIPLookupHost(key96_t key);
private:
static void gotIpWrapper(void *state, UdpSlot *slot);

@ -126,8 +126,6 @@ bool MsgC::getIp(const char *hostname, int32_t hostnameLen, int32_t *ip, void *s
requestSize++;
//uint32_t groupNum=key.n0 % g_hostdb.m_numShards;
//uint32_t groupId=g_hostdb.getGroupId(groupNum);
// get a hostid that should house this ip in its local cache
Host *host = NULL; // g_dns.getResponsibleHost ( key );
// with the new iframe tag expansion logic in Msg13.cpp, the
// spider proxy will create a newXmlDoc to do that and will call
@ -147,7 +145,8 @@ bool MsgC::getIp(const char *hostname, int32_t hostnameLen, int32_t *ip, void *s
// there was logic for getting ip from a proxy here
// removed in commit bab9e9da06a8edeb8a7677c2e90f72766f6ba782 as it was never used
host = g_dns.getResponsibleHost ( key );
// get a hostid that should house this ip in its local cache
Host *host = g_dns.getIPLookupHost(key);
if ( g_conf.m_logDebugDns ) {
int32_t fip = 0;