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 #41 from Intel-HLS/dev
Browse files Browse the repository at this point in the history
Bug Fixes
  • Loading branch information
stavrospapadopoulos authored Jul 20, 2016
2 parents 40475b0 + 44e059e commit a5b7de4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/include/c_api/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <limits.h>

/** Version. */
#define TILEDB_VERSION "0.3.1"
#define TILEDB_VERSION "0.3.2"

/**@{*/
/** Return code. */
Expand Down
18 changes: 16 additions & 2 deletions core/src/array/array_read_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1510,12 +1510,26 @@ 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);
fid = popped->fragment_id_;
delete popped;
break;

if(rid[fid] == rlen[fid]) {
break;
} else {
pq_fragment_cell_range = new PQFragmentCellRange<T>(
array_schema_,
&fragment_read_states_);
pq_fragment_cell_range->import_from(
unsorted_fragment_cell_ranges[fid][rid[fid]]);
pq.push(pq_fragment_cell_range);
++rid[fid];
continue;
}
}

// Mark the second entry (now top) as top
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 a5b7de4

Please sign in to comment.