diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-06 15:56:33 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-06 15:56:33 -0500 |
| commit | fd0e99e618319974320ed3fb49535aec501be1fb (patch) | |
| tree | ba5015299ec58beeea152b46eff15a4778b4f20f /include/util/types.h | |
| parent | 5ee10c336581b68ba91c7048431809e3ccaf7e87 (diff) | |
| download | dynamic-extension-fd0e99e618319974320ed3fb49535aec501be1fb.tar.gz | |
Background compaction stuff
Diffstat (limited to 'include/util/types.h')
| -rw-r--r-- | include/util/types.h | 8 |
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; } |