diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2016-06-17 07:06:09 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2016-06-17 07:06:09 +0000 |
commit | f1805693ec915781ec63105ba462884656d7a242 (patch) | |
tree | f50aaec4cbda3365d24cb6fc0e5a826356f3d73e /searchcore | |
parent | e693aecea5aea0a85035b2676c232bef8d306e6a (diff) |
Remove dead code
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp | 43 | ||||
-rw-r--r-- | searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.h | 4 |
2 files changed, 9 insertions, 38 deletions
diff --git a/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp b/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp index 193c4365189..00cec8f5559 100644 --- a/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp +++ b/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.cpp @@ -247,9 +247,7 @@ Fdispatch::Fdispatch(const config::ConfigUri &configUri) { int64_t cfgGen = -1; _config = config::ConfigGetter<FdispatchrcConfig>:: - getConfig(cfgGen, - _configUri.getConfigId(), - _configUri.getContext()); + getConfig(cfgGen, _configUri.getConfigId(), _configUri.getContext()); LOG(config, "fdispatch version %s (RPC-port: %d, transport at %d)", FastS_VersionTag, _config->frtport, _config->ptport); @@ -257,21 +255,6 @@ Fdispatch::Fdispatch(const config::ConfigUri &configUri) "config only obtained at startup")); } - -void -Fdispatch::CheckCacheMaxEntries(unsigned int queryCacheMaxEntries, - unsigned int queryAttrCacheMaxEntries) -{ - if (queryAttrCacheMaxEntries == 0) - return; - - if ((queryAttrCacheMaxEntries <= queryCacheMaxEntries) || - (queryCacheMaxEntries == 0)) { - FastS_abort("Please edit fdispatchrc such that " - "queryattrcachequeries > querycachequeries."); - } -} - namespace { CompressionConfig::Type @@ -298,12 +281,9 @@ Fdispatch::Init(void) _timeouts = 0; _checkLimit = 60; - FS4PersistentPacketStreamer::Instance.SetCompressionLimit( - _config->packetcompresslimit); - FS4PersistentPacketStreamer::Instance.SetCompressionLevel( - _config->packetcompresslevel); - FS4PersistentPacketStreamer::Instance.SetCompressionType( - convert(_config->packetcompresstype)); + FS4PersistentPacketStreamer::Instance.SetCompressionLimit(_config->packetcompresslimit); + FS4PersistentPacketStreamer::Instance.SetCompressionLevel(_config->packetcompresslevel); + FS4PersistentPacketStreamer::Instance.SetCompressionType(convert(_config->packetcompresstype)); LOG(debug, "Creating FNET transport"); @@ -323,16 +303,14 @@ Fdispatch::Init(void) FastS_TimeOut::_val[FastS_TimeOut::maxSockSilent] = _config->maxsocksilent; - if (_transport != NULL) + if (_transport != NULL) { _transport->SetIOCTimeOut((uint32_t) (FastS_TimeOut::_val[FastS_TimeOut::maxSockSilent] * 1000.0)); + } char timestr[40]; - FastS_TimeOut::WriteTime(timestr, sizeof(timestr), - FastS_TimeOut::_val[FastS_TimeOut::maxSockSilent]); - LOG(debug, - "VERBOSE: Max time between successful read from a socket: %s", - timestr); + FastS_TimeOut::WriteTime(timestr, sizeof(timestr), FastS_TimeOut::_val[FastS_TimeOut::maxSockSilent]); + LOG(debug, "VERBOSE: Max time between successful read from a socket: %s", timestr); FastS_QueryCacheUtil::_systemMaxHits = std::numeric_limits<int>::max(); LOG(debug, "VERBOSE: maxhits: %d", FastS_QueryCacheUtil::_systemMaxHits); @@ -341,9 +319,7 @@ Fdispatch::Init(void) const uint32_t linesize = 1; if (FastS_QueryCacheUtil::_systemMaxHits < linesize && FastS_QueryCacheUtil::_maxOffset < linesize - FastS_QueryCacheUtil::_systemMaxHits) { - LOG(warning, - "maxoffset must be >= %d! (overriding config value)", - linesize - FastS_QueryCacheUtil::_systemMaxHits); + LOG(warning, "maxoffset must be >= %d! (overriding config value)", linesize - FastS_QueryCacheUtil::_systemMaxHits); FastS_QueryCacheUtil::_maxOffset = linesize - FastS_QueryCacheUtil::_systemMaxHits; } LOG(debug, "VERBOSE: maxoffset: %d", FastS_QueryCacheUtil::_maxOffset); @@ -356,7 +332,6 @@ Fdispatch::Init(void) _nodeManager = new FastS_NodeManager(_componentConfig, this, _partition); - GetFNETTransport()->SetTCPNoDelay(_config->transportnodelay); GetFNETTransport()->SetDirectWrite(_config->transportdirectwrite); diff --git a/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.h b/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.h index b4ff8d9f37e..ce050554c76 100644 --- a/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.h +++ b/searchcore/src/vespa/searchcore/fdispatch/program/fdispatch.h @@ -95,10 +95,6 @@ public: int getHealthPort() const { return _healthPort; } vespalib::SimpleComponentConfigProducer &getComponentConfig() { return _componentConfig; } - void - CheckCacheMaxEntries(unsigned int queryCacheMaxEntries, - unsigned int queryAttrCacheMaxEntries); - Fdispatch(const config::ConfigUri &configUri); ~Fdispatch(void); }; |