diff --git a/sstables/sstables_manager.cc b/sstables/sstables_manager.cc index c751b48639..db755b1e4c 100644 --- a/sstables/sstables_manager.cc +++ b/sstables/sstables_manager.cc @@ -43,7 +43,7 @@ sstables_manager::sstables_manager( , _maintenance_sg(std::move(maintenance_sg)) , _abort(abort) { - _components_reloader_status = components_reloader_fiber(); + _components_reloader_status = components_reclaim_reload_fiber(); } sstables_manager::~sstables_manager() { @@ -184,7 +184,7 @@ size_t sstables_manager::get_memory_available_for_reclaimable_components() const return get_components_memory_reclaim_threshold() - _total_reclaimable_memory; } -future<> sstables_manager::components_reloader_fiber() { +future<> sstables_manager::components_reclaim_reload_fiber() { co_await coroutine::switch_to(_maintenance_sg); sstlog.trace("components_reloader_fiber start"); diff --git a/sstables/sstables_manager.hh b/sstables/sstables_manager.hh index aba86480af..a88ba6646c 100644 --- a/sstables/sstables_manager.hh +++ b/sstables/sstables_manager.hh @@ -217,7 +217,7 @@ private: // reclaim it from the SSTable that has the most reclaimable memory. void increment_total_reclaimable_memory_and_maybe_reclaim(sstable* sst); // Fiber to reload reclaimed components back into memory when memory becomes available. - future<> components_reloader_fiber(); + future<> components_reclaim_reload_fiber(); // Reclaims components from SSTables if total memory usage exceeds the threshold. void maybe_reclaim_components(); // Reloads components from reclaimed SSTables if memory is available.