aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/docstore/documentstore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/vespa/searchlib/docstore/documentstore.cpp')
-rw-r--r--searchlib/src/vespa/searchlib/docstore/documentstore.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/documentstore.cpp b/searchlib/src/vespa/searchlib/docstore/documentstore.cpp
index 7d585007d76..bb0dcbe699f 100644
--- a/searchlib/src/vespa/searchlib/docstore/documentstore.cpp
+++ b/searchlib/src/vespa/searchlib/docstore/documentstore.cpp
@@ -1,4 +1,4 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "documentstore.h"
#include "visitcache.h"
@@ -121,6 +121,10 @@ DocumentStore::Config::operator == (const Config &rhs) const {
(_compression == rhs._compression);
}
+size_t
+DocumentStore::getCacheCapacity() const {
+ return _cache->capacityBytes();
+}
DocumentStore::DocumentStore(const Config & config, IDataStore & store)
: IDocumentStore(),