summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2016-12-15 14:31:49 +0100
committerGeir Storli <geirst@yahoo-inc.com>2016-12-15 14:31:49 +0100
commitfe66f1be411e51a3f767d3db30eebfde458aeb94 (patch)
tree7d03649c8ddcd6504e0a6601a3bf8d3aa51e4ce9
parentb564f79643996dcb60a8a143ac0094a3a54ac0df (diff)
Fix calculation of getMemoryMetaFootprint().
-rw-r--r--searchlib/src/vespa/searchlib/docstore/filechunk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/filechunk.cpp b/searchlib/src/vespa/searchlib/docstore/filechunk.cpp
index b95200ff232..5116914feb6 100644
--- a/searchlib/src/vespa/searchlib/docstore/filechunk.cpp
+++ b/searchlib/src/vespa/searchlib/docstore/filechunk.cpp
@@ -633,7 +633,7 @@ FileChunk::getMemoryFootprint() const
size_t
FileChunk::getMemoryMetaFootprint() const
{
- return getMemoryUsage().allocatedBytes();
+ return sizeof(*this) + _chunkInfo.byteCapacity();
}
MemoryUsage