summaryrefslogtreecommitdiffstats
path: root/searchlib/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-09-09 07:06:00 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-09-09 07:06:00 +0000
commit9d770f5feaba1d205485c1bdde1d834a1a835332 (patch)
treef356cf946364fd3d0a4d34d0722a9cac7075e522 /searchlib/src
parent1a9d3f071766e26b5306541c9b5f23bb53c10eec (diff)
Add debug logging.
Diffstat (limited to 'searchlib/src')
-rw-r--r--searchlib/src/vespa/searchlib/transactionlog/domain.cpp3
-rw-r--r--searchlib/src/vespa/searchlib/transactionlog/domain.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/transactionlog/domain.cpp b/searchlib/src/vespa/searchlib/transactionlog/domain.cpp
index 2fa1fbdeceb..624c85c9cc0 100644
--- a/searchlib/src/vespa/searchlib/transactionlog/domain.cpp
+++ b/searchlib/src/vespa/searchlib/transactionlog/domain.cpp
@@ -415,6 +415,9 @@ Domain::doCommit(std::unique_ptr<Chunk> chunk) {
dp->sync();
}
cleanSessions();
+ LOG(debug, "Releasing %zu acks and %zu entries and %zu bytes and age %ld us",
+ chunk->getNumCallBacks(), chunk->getPacket().size(),
+ chunk->sizeBytes(), vespalib::count_us(chunk->age()));
}
bool
diff --git a/searchlib/src/vespa/searchlib/transactionlog/domain.h b/searchlib/src/vespa/searchlib/transactionlog/domain.h
index 3f9afb7dde5..3688901d23f 100644
--- a/searchlib/src/vespa/searchlib/transactionlog/domain.h
+++ b/searchlib/src/vespa/searchlib/transactionlog/domain.h
@@ -67,6 +67,7 @@ private:
size_t sizeBytes() const { return _data.sizeBytes(); }
const Packet & getPacket() const { return _data; }
vespalib::duration age() const;
+ size_t getNumCallBacks() const { return _callBacks.size(); }
private:
Packet _data;
std::vector<Writer::DoneCallback> _callBacks;