diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-11 20:50:09 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-02-11 21:31:39 +0000 |
commit | 6f529be6a611d26aefc04fa0a924718c5c80f74b (patch) | |
tree | e24484bc7a0310bbbc9cdb1fa5dd8aec94dd5932 /searchcorespi | |
parent | 034b0392265e6e02e00aa06196697fea3f67220f (diff) |
Ensure that we do not go above 16G as we then might trigger other internal limits that we do not have
full control of.
Diffstat (limited to 'searchcorespi')
-rw-r--r-- | searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.h b/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.h index 50ae2000a11..5573a646d1b 100644 --- a/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.h +++ b/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.h @@ -4,8 +4,7 @@ #include "indexmaintainer.h" #include <vespa/searchcorespi/flush/iflushtarget.h> -namespace searchcorespi { -namespace index { +namespace searchcorespi::index { /** * Flush target for flushing a memory index in an IndexMaintainer. @@ -23,18 +22,16 @@ public: ~IndexFlushTarget(); // Implements IFlushTarget - virtual MemoryGain getApproxMemoryGain() const override; - virtual DiskGain getApproxDiskGain() const override; - virtual SerialNum getFlushedSerialNum() const override; - virtual Time getLastFlushTime() const override; + MemoryGain getApproxMemoryGain() const override; + DiskGain getApproxDiskGain() const override; + SerialNum getFlushedSerialNum() const override; + Time getLastFlushTime() const override; - virtual bool needUrgentFlush() const override; + bool needUrgentFlush() const override; - virtual Task::UP initFlush(SerialNum currentSerial, std::shared_ptr<search::IFlushToken> flush_token) override; - virtual FlushStats getLastFlushStats() const override { return _lastStats; } - virtual uint64_t getApproxBytesToWriteToDisk() const override; + Task::UP initFlush(SerialNum currentSerial, std::shared_ptr<search::IFlushToken> flush_token) override; + FlushStats getLastFlushStats() const override { return _lastStats; } + uint64_t getApproxBytesToWriteToDisk() const override; }; -} // namespace index -} // namespace searchcorespi - +} |