summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp b/searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp
index c2dd760549c..82a9bb72a51 100644
--- a/searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp
+++ b/searchlib/src/vespa/searchlib/docstore/writeablefilechunk.cpp
@@ -629,6 +629,7 @@ WriteableFileChunk::getMemoryFootprint() const
size_t
WriteableFileChunk::getMemoryMetaFootprint() const
{
+ std::lock_guard guard(_lock);
constexpr size_t mySizeWithoutMyParent(sizeof(*this) - sizeof(FileChunk));
return mySizeWithoutMyParent + FileChunk::getMemoryMetaFootprint();
}