Skip to content

Commit

Permalink
fixed bug with null pointer reference for greedy extended one tiered
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Taft committed Mar 13, 2014
1 parent ddac9d8 commit 648d965
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public Plan computePlan(ArrayList<Map<Long, Long>> hotTuplesList, Map<Integer, L
List<Plan.Range> oldRanges = aPlan.getRangeValues(i, r.from, r.to);
for(Plan.Range oldRange : oldRanges) {
aPlan.removeRange(i, oldRange.from);
if(!aPlan.hasPartition(dstPartition)) {
aPlan.addPartition(dstPartition);
}
aPlan.addRange(dstPartition, Math.max(oldRange.from, r.from), Math.min(oldRange.to, r.to));

if(oldRange.from < r.from) {
Expand Down

0 comments on commit 648d965

Please sign in to comment.