summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-07-03 16:32:35 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-07-03 16:32:35 -0400
commit4ee495b0727ed40ec5923fe0909b9fda7c119263 (patch)
treeaa4cad9e1d6f7ad68d5d7c135a4f200ad82efb60
parentf39e512ae3848abd1d3c68349c1a8fbe97be91b5 (diff)
downloaddynamic-extension-4ee495b0727ed40ec5923fe0909b9fda7c119263.tar.gz
Bugfixes
-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++;
}