summaryrefslogtreecommitdiffstats
path: root/include/query
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-04-19 16:50:18 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2024-04-19 16:50:18 -0400
commit8479f3ce863dfb6d3b20ff4678fa6fe92ee86b52 (patch)
treeae59b1f053f3206198be308f0cdde76046baa4f4 /include/query
parentae189be91ec135629c7ad62888cd98183494c075 (diff)
downloaddynamic-extension-8479f3ce863dfb6d3b20ff4678fa6fe92ee86b52.tar.gz
Fixed some benchmarking bugs
Diffstat (limited to 'include/query')
-rw-r--r--include/query/irs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/query/irs.h b/include/query/irs.h
index e2d9325..51eb4e2 100644
--- a/include/query/irs.h
+++ b/include/query/irs.h
@@ -103,7 +103,7 @@ public:
weights.push_back((bs) ? bs->records.size() : 0);
}
- size_t total_weight = 0;
+ size_t total_weight = weights[0];
for (auto &s : shard_states) {
auto state = (State<R> *) s;
total_weight += state->total_weight;