diff options
author | Geir Storli <geirst@yahoo-inc.com> | 2016-12-15 14:31:49 +0100 |
---|---|---|
committer | Geir Storli <geirst@yahoo-inc.com> | 2016-12-15 14:31:49 +0100 |
commit | fe66f1be411e51a3f767d3db30eebfde458aeb94 (patch) | |
tree | 7d03649c8ddcd6504e0a6601a3bf8d3aa51e4ce9 | |
parent | b564f79643996dcb60a8a143ac0094a3a54ac0df (diff) |
Fix calculation of getMemoryMetaFootprint().
-rw-r--r-- | searchlib/src/vespa/searchlib/docstore/filechunk.cpp | 2 |
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 |