Skip to content

Commit

Permalink
[hotfix] [runtime] Fix processing unmatched build-side when all bucke…
Browse files Browse the repository at this point in the history
…ts spilled
  • Loading branch information
greghogan authored and fhueske committed Feb 23, 2016
1 parent 8656ed5 commit 03923c3
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1810,6 +1810,11 @@ private BT nextInBucket(BT reuse) {
}
}

// if all buckets were spilled out of memory
if (this.bucketSegment == null) {
return null;
}

// this segment is done. check if there is another chained bucket
final long forwardPointer = this.bucketSegment.getLong(this.bucketInSegmentOffset + HEADER_FORWARD_OFFSET);
if (forwardPointer == BUCKET_FORWARD_POINTER_NOT_SET) {
Expand Down Expand Up @@ -1847,7 +1852,12 @@ private BT nextInBucket() {
this.numInSegment++;
}
}


// if all buckets were spilled out of memory
if (this.bucketSegment == null) {
return null;
}

// this segment is done. check if there is another chained bucket
final long forwardPointer = this.bucketSegment.getLong(this.bucketInSegmentOffset + HEADER_FORWARD_OFFSET);
if (forwardPointer == BUCKET_FORWARD_POINTER_NOT_SET) {
Expand Down

0 comments on commit 03923c3

Please sign in to comment.