mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-04-23 15:19:40 -04:00
Renamed Dns::getResponsibleHost() to getIPLookupHost()
This commit is contained in:
parent
8e34f85829
commit
f13f5d687d
2
Dns.cpp
2
Dns.cpp
@ -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
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);
|
||||
|
5
MsgC.cpp
5
MsgC.cpp
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user