summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--searchcorespi/src/vespa/searchcorespi/index/indexflushtarget.cpp3
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);