use 16_Gi directly
@@ -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);
