From 2cea904e07629a955f3f024b5a718a21c06ec032 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 17 Feb 2025 09:53:33 -0500 Subject: Fixed legacy tiering policy --- include/framework/reconstruction/BackgroundTieringPolicy.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/framework/reconstruction/BackgroundTieringPolicy.h') diff --git a/include/framework/reconstruction/BackgroundTieringPolicy.h b/include/framework/reconstruction/BackgroundTieringPolicy.h index 5a82695..9a9ebaa 100644 --- a/include/framework/reconstruction/BackgroundTieringPolicy.h +++ b/include/framework/reconstruction/BackgroundTieringPolicy.h @@ -46,9 +46,7 @@ public: for (level_index i = target_level; i > source_level; i--) { if (lock_mngr.take_lock(i-1)) { ReconstructionVector recon; - size_t target_reccnt = - (i < (level_index)levels.size()) ? levels[i]->get_record_count() : 0; - size_t total_reccnt = levels[i - 1]->get_record_count() + target_reccnt; + size_t total_reccnt = levels[i - 1]->get_record_count(); std::vector shards; for (ssize_t j=0; j<(ssize_t)levels[i-1]->get_shard_count(); j++) { shards.push_back({i-1, j}); -- cgit v1.2.3