Go to the source code of this file.
◆ M0_TRACE_SUBSYSTEM
#define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_CAS |
◆ cgc_fom_phase
Enumerator |
---|
CGC_TREE_CLEAN | |
CGC_LOOKUP | |
CGC_INDEX_FOUND | |
CGC_CREDITS | |
CGC_TREE_DROP | |
CGC_LOCK_DEAD_INDEX | |
CGC_RM_FROM_DEAD_INDEX | |
CGC_SUCCESS | |
CGC_NR | |
Definition at line 99 of file index_gc.c.
◆ cgc_fom_fini()
static void cgc_fom_fini |
( |
struct m0_fom * |
fom0 | ) |
|
|
static |
Finalise current index GC fom and, maybe, start new one.
Definition at line 502 of file index_gc.c.
◆ cgc_fom_home_locality()
static size_t cgc_fom_home_locality |
( |
const struct m0_fom * |
fom | ) |
|
|
static |
◆ cgc_fom_tick()
static int cgc_fom_tick |
( |
struct m0_fom * |
fom | ) |
|
|
static |
◆ cgc_fop_release()
static void cgc_fop_release |
( |
struct m0_ref * |
ref | ) |
|
|
static |
◆ cgc_retry()
static void cgc_retry |
( |
void |
| ) |
|
|
static |
◆ cgc_start_fom()
static void cgc_start_fom |
( |
struct m0_fom * |
fom0, |
|
|
struct m0_fop * |
fop |
|
) |
| |
|
static |
◆ m0_cas_gc_fini()
M0_INTERNAL void m0_cas_gc_fini |
( |
void |
| ) |
|
Finalises index garbage collector.
Definition at line 455 of file index_gc.c.
◆ m0_cas_gc_init()
M0_INTERNAL void m0_cas_gc_init |
( |
void |
| ) |
|
Initialises index garbage collector.
Definition at line 426 of file index_gc.c.
◆ m0_cas_gc_start()
Instructs index garbage collector to destroy all indices referenced in "dead
index" catalogue.
After all records in "dead index" catalogue are processed a garbage collector stops. In other words, garbage collector doesn't monitor the contents of "dead index" catalogue and this function should be called every time when user decides to destroy catalogues referenced in "dead index" catalogue.
Can be called when garbage collector is already started. In this case garbage collector will not stop after destroying catalogues and will recheck "dead
index" contents for new records.
Definition at line 549 of file index_gc.c.
◆ m0_cas_gc_wait_async()
M0_INTERNAL void m0_cas_gc_wait_async |
( |
struct m0_be_op * |
beop | ) |
|
Asynchronously waits until garbage collector stops.
Provided 'beop' will be moved to M0_BOS_DONE state once garbage collector stops.
Definition at line 601 of file index_gc.c.
◆ m0_cas_gc_wait_sync()
M0_INTERNAL void m0_cas_gc_wait_sync |
( |
void |
| ) |
|
Synchronously waits until garbage collector stops.
Definition at line 591 of file index_gc.c.
◆ cgc_fake_fopt
◆ cgc_fom_ops
Initial value:= {
}
static void cgc_fom_fini(struct m0_fom *fom)
static int cgc_fom_tick(struct m0_fom *fom)
static size_t cgc_fom_home_locality(const struct m0_fom *fom)
Definition at line 134 of file index_gc.c.
◆ cgc_fom_phases
◆ cgc_fom_trans
Initial value:= {
}
struct m0_sm_trans_descr m0_generic_phases_trans[]
Definition at line 181 of file index_gc.c.
◆ cgc_fom_type_ops
◆ cgc_sm_conf
Initial value:= {
.scf_name = "cgc-fom",
}
struct m0_sm_trans_descr cgc_fom_trans[]
static struct m0_sm_state_descr cgc_fom_phases[]
Definition at line 197 of file index_gc.c.
◆ gc