summaryrefslogtreecommitdiffstats
path: root/include/util/types.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2025-02-06 15:56:33 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2025-02-06 15:56:33 -0500
commitfd0e99e618319974320ed3fb49535aec501be1fb (patch)
treeba5015299ec58beeea152b46eff15a4778b4f20f /include/util/types.h
parent5ee10c336581b68ba91c7048431809e3ccaf7e87 (diff)
downloaddynamic-extension-fd0e99e618319974320ed3fb49535aec501be1fb.tar.gz
Background compaction stuff
Diffstat (limited to 'include/util/types.h')
-rw-r--r--include/util/types.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/util/types.h b/include/util/types.h
index e67c486..084bf4b 100644
--- a/include/util/types.h
+++ b/include/util/types.h
@@ -111,7 +111,13 @@ public:
void add_reconstruction(level_index source, level_index target,
size_t reccnt, ReconstructionType type) {
- m_tasks.push_back({{{source, all_shards_idx}}, target, reccnt});
+
+ if (type == ReconstructionType::Merge) {
+ m_tasks.push_back({{{source, all_shards_idx}, {target, all_shards_idx}}, target, reccnt});
+ } else {
+ m_tasks.push_back({{{source, all_shards_idx}}, target, reccnt});
+ }
+
total_reccnt += reccnt;
}