mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 11:10:40 +00:00
lsa: Fix documentation for eviction functions
This commit is contained in:
@@ -796,12 +796,7 @@ public:
|
||||
return _compaction_enabled;
|
||||
}
|
||||
|
||||
//
|
||||
// Returns true if this pool is evictable and evict_some() will make some forward progress, so
|
||||
// this will eventually stop:
|
||||
//
|
||||
// while (evictable()) { evict_some(); }
|
||||
//
|
||||
// Returns true if this pool is evictable, so that evict_some() can be called.
|
||||
bool is_evictable() const {
|
||||
return _evictable;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,13 @@ struct occupancy_stats;
|
||||
class region;
|
||||
class region_impl;
|
||||
|
||||
//
|
||||
// Frees some amount of objects from the region to which it's attached.
|
||||
//
|
||||
// Should always make forward progress unless region is empty, so this should eventually stop:
|
||||
//
|
||||
// while (!region.empty()) { eviction_fn(); }
|
||||
//
|
||||
using eviction_fn = std::function<void()>;
|
||||
|
||||
// Groups regions for the purpose of statistics. Can be nested.
|
||||
|
||||
Reference in New Issue
Block a user