summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-08-20 13:49:08 +0200
committerHenning Baldersheim <balder@oath.com>2018-08-20 13:49:08 +0200
commitfd63bb0dcd024fdd47d460fff0b077625328eaa1 (patch)
tree856e99da5af250ecd757cc922a3a76d5ad1f9860
parentc6d642b55558203a6eddd79efbc232bb34ec8e52 (diff)
No need to log to file anymore.
-rw-r--r--searchlib/src/vespa/searchlib/transactionlog/translogserver.cpp13
-rw-r--r--searchlib/src/vespa/searchlib/transactionlog/translogserver.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/searchlib/src/vespa/searchlib/transactionlog/translogserver.cpp b/searchlib/src/vespa/searchlib/transactionlog/translogserver.cpp
index f9a82c8d20f..65bb682a389 100644
--- a/searchlib/src/vespa/searchlib/transactionlog/translogserver.cpp
+++ b/searchlib/src/vespa/searchlib/transactionlog/translogserver.cpp
@@ -165,7 +165,6 @@ void TransLogServer::run()
{
FRT_RPCRequest *req(NULL);
bool hasPacket(false);
- logMetric();
do {
for (req = NULL; (hasPacket = _reqQ.pop(req, 60000)) && (req != NULL); req = NULL) {
bool immediate = true;
@@ -199,22 +198,10 @@ void TransLogServer::run()
req->Return();
}
}
- logMetric();
} while (running() && !(hasPacket && (req == NULL)));
LOG(info, "TLS Stopped");
}
-void TransLogServer::logMetric() const
-{
- Guard domainGuard(_lock);
- for (DomainList::const_iterator it(_domains.begin()), mt(_domains.end()); it != mt; it++) {
- vespalib::string prefix("translogserver." + it->first + ".serialnum.");
- EV_COUNT((prefix + "last").c_str(), it->second->end());
- EV_COUNT((prefix + "first").c_str(), it->second->begin());
- EV_VALUE((prefix + "numused").c_str(), it->second->size());
- }
-}
-
DomainStats
TransLogServer::getDomainStats() const
{
diff --git a/searchlib/src/vespa/searchlib/transactionlog/translogserver.h b/searchlib/src/vespa/searchlib/transactionlog/translogserver.h
index 9dcc17a4a1f..189be8c38d8 100644
--- a/searchlib/src/vespa/searchlib/transactionlog/translogserver.h
+++ b/searchlib/src/vespa/searchlib/transactionlog/translogserver.h
@@ -67,7 +67,6 @@ private:
void finiSession(FRT_RPCRequest *req);
void downSession(FRT_RPCRequest *req);
- void logMetric() const;
std::vector<vespalib::string> getDomainNames();
Domain::SP findDomain(vespalib::stringref name);
vespalib::string dir() const { return _baseDir + "/" + _name; }