Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #39 from stavrospapadopoulos/dev
Browse files Browse the repository at this point in the history
Bug fix in reset_subarray
  • Loading branch information
stavrospapadopoulos authored Jul 14, 2016
2 parents 982c5f9 + 190b78d commit 44e059e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/array/array_read_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,8 @@ int ArrayReadState::sort_fragment_cell_ranges(
popped = pq.top();
pq.pop();

// Last range - just insert it into the results and stop
// Last range - insert it into the results and get the next range
// for that fragment
if(pq.empty()) {
popped->export_to(result);
fragment_cell_ranges.push_back(result);
Expand Down
3 changes: 3 additions & 0 deletions core/src/fragment/read_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ void ReadState::reset() {
done_ = false;
search_tile_pos_ = -1;
compute_tile_search_range();

for(int i=0; i<attribute_num_+2; ++i)
tiles_offsets_[i] = 0;
}

void ReadState::reset_overflow() {
Expand Down

0 comments on commit 44e059e

Please sign in to comment.