From d054b21a66318e096a809c9f94bc8659acfacfd8 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Tue, 4 Feb 2025 17:47:52 -0500 Subject: Fixed a bug with leveling layout policy --- include/util/types.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/util/types.h') 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; } -- cgit v1.2.3