sstables_manager: rename components_reloader_fiber()
A future patch will move components reclaim logic into the current `components_reloader_fiber()`, so to reflect its new purpose, rename it to `components_reclaim_reload_fiber()`. Signed-off-by: Lakshmi Narayanan Sreethar <lakshmi.sreethar@scylladb.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user