mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
fix division by zero error
This commit is contained in:
parent
3b5c133c71
commit
0d63fd68a8
@ -116,7 +116,7 @@ public abstract class AbstractConcurrentMapFilterCache extends AbstractIndexComp
|
||||
totalCount++;
|
||||
}
|
||||
}
|
||||
return new EntriesStats(sizeInBytes, totalCount / segmentsCount);
|
||||
return new EntriesStats(sizeInBytes, segmentsCount == 0 ? 0 : totalCount / segmentsCount);
|
||||
}
|
||||
|
||||
@Override public Filter cache(Filter filterToCache) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user