summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--benchmarks/include/bench.h2
-rw-r--r--include/shard/PGM.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/benchmarks/include/bench.h b/benchmarks/include/bench.h
index b12f3e6..e14460e 100644
--- a/benchmarks/include/bench.h
+++ b/benchmarks/include/bench.h
@@ -104,6 +104,7 @@ static bool query_latency_bench(DE &de_index, std::vector<QP> queries, size_t tr
size_t query_latency = total_time / (trial_cnt * queries.size());
fprintf(stdout, "%ld\t", query_latency);
+ fprintf(stderr, "%ld\n", total_results);
fflush(stdout);
return true;
@@ -145,6 +146,7 @@ static bool static_latency_bench(Shard *shard, std::vector<QP> queries, size_t t
size_t query_latency = total_time / (trial_cnt * queries.size());
fprintf(stdout, "%ld\t", query_latency);
+ fprintf(stderr, "%ld\n", total_results);
fflush(stdout);
return true;
diff --git a/include/shard/PGM.h b/include/shard/PGM.h
index f3f5106..73688ae 100644
--- a/include/shard/PGM.h
+++ b/include/shard/PGM.h
@@ -318,7 +318,7 @@ public:
ptr++;
}
- while (ptr->rec.key <= p->upper_bound && ptr < ptr + s->stop_idx) {
+ while (ptr->rec.key <= p->upper_bound && ptr < ts->m_data + s->stop_idx) {
records.emplace_back(*ptr);
ptr++;
}