diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-04 17:47:52 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-04 17:47:52 -0500 |
| commit | d054b21a66318e096a809c9f94bc8659acfacfd8 (patch) | |
| tree | 62bc7f9e41dae257a7613e8c7e9bb080d0815dd0 /include/util/types.h | |
| parent | 7370b4d1412da47f70c54107adf498fa6be2cfc4 (diff) | |
| download | dynamic-extension-d054b21a66318e096a809c9f94bc8659acfacfd8.tar.gz | |
Fixed a bug with leveling layout policy
Diffstat (limited to 'include/util/types.h')
| -rw-r--r-- | include/util/types.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/util/types.h b/include/util/types.h index e67c486..72b3d29 100644 --- a/include/util/types.h +++ b/include/util/types.h @@ -111,7 +111,11 @@ 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; } |