summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-12-03 15:47:49 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-12-03 15:47:49 +0000
commit973879559cdd2fb1d14682a23bb58914471cff54 (patch)
tree7fe6e9c3e85265e01f43727b7754712087e770e0 /searchcore
parentad4219f3c80db0f4448f7028757cd75b7c4028f0 (diff)
Iterate outside of the loop
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/docsummary/summarycompacttarget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/docsummary/summarycompacttarget.cpp b/searchcore/src/vespa/searchcore/proton/docsummary/summarycompacttarget.cpp
index 6d71b81cb8b..4e0cf3f9059 100644
--- a/searchcore/src/vespa/searchcore/proton/docsummary/summarycompacttarget.cpp
+++ b/searchcore/src/vespa/searchcore/proton/docsummary/summarycompacttarget.cpp
@@ -56,8 +56,8 @@ SummaryCompactTarget::getApproxMemoryGain() const
IFlushTarget::DiskGain
SummaryCompactTarget::getApproxDiskGain() const
{
- uint64_t total(_docStore.getDiskFootprint());
- return DiskGain(total, total - std::min(total, static_cast<uint64_t>(_docStore.getMaxCompactGain())));
+ size_t total(_docStore.getDiskFootprint());
+ return DiskGain(total, total - std::min(total, _docStore.getMaxCompactGain()));
}
IFlushTarget::Time