summaryrefslogtreecommitdiffstats
path: root/tests/include/pointlookup.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2025-03-03 13:41:19 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2025-03-03 13:41:19 -0500
commit2ded45f5a20f38fdfd9f348c446c38dc713a5591 (patch)
tree746fb09b49ee4c00fc3e4760d899d60d8d8dcce0 /tests/include/pointlookup.h
parentd116b94389538aa8e0e7354fae77693b980de4f0 (diff)
downloaddynamic-extension-2ded45f5a20f38fdfd9f348c446c38dc713a5591.tar.gz
Fixed a few concurrency bugs
Diffstat (limited to 'tests/include/pointlookup.h')
-rw-r--r--tests/include/pointlookup.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/include/pointlookup.h b/tests/include/pointlookup.h
index f3a03dd..a365144 100644
--- a/tests/include/pointlookup.h
+++ b/tests/include/pointlookup.h
@@ -37,10 +37,10 @@
START_TEST(t_point_lookup_query)
{
auto buffer = create_test_mbuffer<R>(1000);
- auto shard = Shard(buffer->get_buffer_view());
+ auto shard = Shard(buffer->get_buffer_view(buffer->debug_get_head()));
{
- auto bv = buffer->get_buffer_view();
+ auto bv = buffer->get_buffer_view(buffer->debug_get_head());
for (size_t i=0; i<bv.get_record_count(); i++) {
auto key = bv.get(i)->rec.key;
@@ -73,7 +73,7 @@ START_TEST(t_buffer_point_lookup)
auto buffer = create_test_mbuffer<R>(1000);
{
- auto view = buffer->get_buffer_view();
+ auto view = buffer->get_buffer_view(buffer->debug_get_head());
for (int i=view.get_record_count()-1; i>=0; i--) {
pl::Query<Shard>::Parameters parms = {view.get(i)->rec.key};
auto local_query = pl::Query<Shard>::local_preproc_buffer(&view, &parms);