aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-10-05 06:58:29 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-10-05 15:53:07 +0000
commit0d149ee8c5d5f1ca50f936defd0e1da280309f25 (patch)
tree8b1e056e7a9b4e610ba9e854b9cbb220343a0b15 /searchlib
parent10502038b756827a870d7ebe1084cea77110211f (diff)
Disable cache for removed only docsubdb.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/docstore/documentstore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/documentstore.h b/searchlib/src/vespa/searchlib/docstore/documentstore.h
index bb62b09123f..c83d625d908 100644
--- a/searchlib/src/vespa/searchlib/docstore/documentstore.h
+++ b/searchlib/src/vespa/searchlib/docstore/documentstore.h
@@ -37,6 +37,7 @@ public:
{ }
CompressionConfig getCompression() const { return _compression; }
size_t getMaxCacheBytes() const { return _maxCacheBytes; }
+ Config & disableCache() { _maxCacheBytes = 0; return *this; }
Config & updateStrategy(UpdateStrategy strategy) { _updateStrategy = strategy; return *this; }
UpdateStrategy updateStrategy() const { return _updateStrategy; }
bool operator == (const Config &) const;