#include <bf_tree_cleaner.h>
§ bf_tree_cleaner()
| bf_tree_cleaner::bf_tree_cleaner |
( |
const sm_options & |
_options | ) |
|
Constructor for bf_tree_cleaner.
This merely allocates arrays and objects. The real start-up is done in do_work() because a constructor can't return error codes.
- Parameters
-
| _options | Contains the set cleaner policy and options with regard to the selection of pages to clean. |
§ ~bf_tree_cleaner()
| bf_tree_cleaner::~bf_tree_cleaner |
( |
| ) |
|
Destructs this object. This merely de-allocates arrays and objects. Use request_stop_cleaners() or kill_cleaners() to stop cleaner threads.
§ clean_candidates()
| void bf_tree_cleaner::clean_candidates |
( |
| ) |
|
|
private |
§ clean_no_policy()
| void bf_tree_cleaner::clean_no_policy |
( |
| ) |
|
|
private |
§ collect_candidates()
| void bf_tree_cleaner::collect_candidates |
( |
| ) |
|
|
private |
§ do_work()
| void bf_tree_cleaner::do_work |
( |
| ) |
|
|
protectedvirtual |
Actual working method to be implemented by derived classes.
Implements worker_thread_t.
§ flush_clusters()
| void bf_tree_cleaner::flush_clusters |
( |
const vector< size_t > & |
clusters | ) |
|
|
private |
§ flush_workspace_no_clusters()
| void bf_tree_cleaner::flush_workspace_no_clusters |
( |
size_t |
count | ) |
|
|
private |
§ get_policy_predicate()
Return predicate function object that implements given policy
§ ignore_min_write_now()
| bool bf_tree_cleaner::ignore_min_write_now |
( |
| ) |
const |
|
inlineprotected |
§ latch_and_copy()
| bool bf_tree_cleaner::latch_and_copy |
( |
PageID |
pid, |
|
|
bf_idx |
idx, |
|
|
size_t |
wpos |
|
) |
| |
|
private |
§ candidates
List of candidate dirty frames to be considered for cleaning.
§ min_write_ignore_freq
| size_t bf_tree_cleaner::min_write_ignore_freq |
|
private |
§ min_write_size
| size_t bf_tree_cleaner::min_write_size |
|
private |
Only write out clusters of pages with this minimum size.
§ num_candidates
| size_t bf_tree_cleaner::num_candidates |
|
private |
§ policy
The documentation for this class was generated from the following files: