summaryrefslogtreecommitdiffstats
path: root/tests/rangequery_tests.cpp
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-01-17 18:22:00 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2024-01-17 18:22:00 -0500
commit138c793b0a58577713d98c98bb140cf1d9c79bee (patch)
tree921197e2ba521704cb379ac8069189e70f8dee3d /tests/rangequery_tests.cpp
parent2117935e85412f3733ee0bcb1830c7fd0b129b29 (diff)
downloaddynamic-extension-138c793b0a58577713d98c98bb140cf1d9c79bee.tar.gz
Multiple concurrency bug fixes
A poorly organized commit with fixes for a variety of bugs that were causing missing records. The core problems all appear to be fixed, though there is an outstanding problem with tombstones not being completely canceled. A very small number are appearing in the wrong order during the static structure test.
Diffstat (limited to 'tests/rangequery_tests.cpp')
-rw-r--r--tests/rangequery_tests.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/rangequery_tests.cpp b/tests/rangequery_tests.cpp
index 6a00f5a..78a4e72 100644
--- a/tests/rangequery_tests.cpp
+++ b/tests/rangequery_tests.cpp
@@ -125,15 +125,12 @@ START_TEST(t_lower_bound)
auto buffer1 = create_sequential_mbuffer<Rec>(100, 200);
auto buffer2 = create_sequential_mbuffer<Rec>(400, 1000);
- Shard *shards[2];
-
auto shard1 = Shard(buffer1->get_buffer_view());
auto shard2 = Shard(buffer2->get_buffer_view());
- shards[0] = &shard1;
- shards[1] = &shard2;
+ std::vector<Shard *> shards = {&shard1, &shard2};
- auto merged = Shard(shards, 2);
+ auto merged = Shard(shards);
for (size_t i=100; i<1000; i++) {
Rec r;