mirror of https://github.com/apache/druid.git
Fix bug with segment loader counting thingie
This commit is contained in:
parent
4a64ce37ed
commit
7ebe053ac1
|
@ -211,7 +211,7 @@ public class OmniSegmentLoader implements SegmentLoader
|
||||||
|
|
||||||
private synchronized void addSegment(DataSegment segment)
|
private synchronized void addSegment(DataSegment segment)
|
||||||
{
|
{
|
||||||
if (! segments.add(segment)) {
|
if (segments.add(segment)) {
|
||||||
currSize += segment.getSize();
|
currSize += segment.getSize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -210,7 +210,7 @@ public class SingleSegmentLoader implements SegmentLoader
|
||||||
|
|
||||||
private synchronized void addSegment(DataSegment segment)
|
private synchronized void addSegment(DataSegment segment)
|
||||||
{
|
{
|
||||||
if (! segments.add(segment)) {
|
if (segments.add(segment)) {
|
||||||
currSize += segment.getSize();
|
currSize += segment.getSize();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue