Motr
M0
|
Go to the source code of this file.
Macros | |
#define | __MOTR_CAS_INDEX_GC_H__ |
Functions | |
M0_INTERNAL void | m0_cas_gc_init (void) |
M0_INTERNAL void | m0_cas_gc_fini (void) |
M0_INTERNAL void | m0_cas_gc_start (struct m0_reqh_service *service) |
M0_INTERNAL void | m0_cas_gc_wait_async (struct m0_be_op *beop) |
M0_INTERNAL void | m0_cas_gc_wait_sync (void) |
#define __MOTR_CAS_INDEX_GC_H__ |
Definition at line 26 of file index_gc.h.
M0_INTERNAL void m0_cas_gc_fini | ( | void | ) |
Finalises index garbage collector.
Definition at line 455 of file index_gc.c.
M0_INTERNAL void m0_cas_gc_init | ( | void | ) |
Initialises index garbage collector.
Definition at line 426 of file index_gc.c.
M0_INTERNAL void m0_cas_gc_start | ( | struct m0_reqh_service * | service | ) |
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_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_INTERNAL void m0_cas_gc_wait_sync | ( | void | ) |
Synchronously waits until garbage collector stops.
Definition at line 591 of file index_gc.c.