diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-02-15 18:59:38 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-02-15 18:59:38 +0000 |
commit | d2ac8338ccd6770bcc8b962fec0dcc671535fe96 (patch) | |
tree | f8dbdd17b8b156fcb47b0ae4754ac80804cff350 /searchcorespi | |
parent | b431b431368bd75b892ec506f9a8891271bbb757 (diff) |
use 16_Gi directly
Diffstat (limited to 'searchcorespi')
-rw-r--r-- | searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp b/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp index dc7798dd478..48fb32c1a89 100644 --- a/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp +++ b/searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp @@ -42,9 +42,8 @@ IndexFlushTarget::needUrgentFlush() const { // Due to limitation of 16G address space of single datastore // TODO: Even better if urgency was decided by memory index itself. - constexpr int64_t G =1_Gi; bool urgent = (_numFrozenMemoryIndexes > _maxFrozenMemoryIndexes) || - (getApproxMemoryGain().gain() > 16*G); + (getApproxMemoryGain().gain() > ssize_t(16_Gi)); SerialNum flushedSerial = _indexMaintainer.getFlushedSerialNum(); LOG(debug, "Num frozen: %u Memory gain: %ld Urgent: %d, flushedSerial=%" PRIu64, _numFrozenMemoryIndexes, getApproxMemoryGain().gain(), static_cast<int>(urgent), flushedSerial); |