Fix bug with segment loader counting thingie

This commit is contained in:
cheddar 2013-08-14 09:37:22 -07:00
parent 4a64ce37ed
commit 7ebe053ac1
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ public class OmniSegmentLoader implements SegmentLoader
private synchronized void addSegment(DataSegment segment)
{
if (! segments.add(segment)) {
if (segments.add(segment)) {
currSize += segment.getSize();
}
}

View File

@ -210,7 +210,7 @@ public class SingleSegmentLoader implements SegmentLoader
private synchronized void addSegment(DataSegment segment)
{
if (! segments.add(segment)) {
if (segments.add(segment)) {
currSize += segment.getSize();
}
}