summaryrefslogtreecommitdiffstats
path: root/tests/include/shard_standard.h
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/include/shard_standard.h
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/include/shard_standard.h')
-rw-r--r--tests/include/shard_standard.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/include/shard_standard.h b/tests/include/shard_standard.h
index 047a7b5..ddd7614 100644
--- a/tests/include/shard_standard.h
+++ b/tests/include/shard_standard.h
@@ -65,8 +65,8 @@ START_TEST(t_shard_init)
auto shard2 = new Shard(mbuffer2->get_buffer_view());
auto shard3 = new Shard(mbuffer3->get_buffer_view());
- Shard* shards[3] = {shard1, shard2, shard3};
- auto shard4 = new Shard(shards, 3);
+ std::vector<Shard*> shards = {shard1, shard2, shard3};
+ auto shard4 = new Shard(shards);
ck_assert_int_eq(shard4->get_record_count(), n * 3);
ck_assert_int_eq(shard4->get_tombstone_count(), 0);
@@ -119,9 +119,9 @@ START_TEST(t_full_cancelation)
ck_assert_int_eq(shard_ts->get_record_count(), n);
ck_assert_int_eq(shard_ts->get_tombstone_count(), n);
- Shard* shards[] = {shard, shard_ts};
+ std::vector<Shard *> shards = {shard, shard_ts};
- Shard* merged = new Shard(shards, 2);
+ Shard* merged = new Shard(shards);
ck_assert_int_eq(merged->get_tombstone_count(), 0);
ck_assert_int_eq(merged->get_record_count(), 0);