Motr  M0
m0_cas_state Struct Reference

#include <ctg_store.h>

Collaboration diagram for m0_cas_state:
Collaboration graph

Data Fields

struct m0_format_header cs_header
 
struct m0_cas_ctgcs_meta
 
uint64_t cs_rec_nr
 
uint64_t cs_rec_size
 
struct m0_format_footer cs_footer
 
struct m0_be_mutex cs_ctg_init_mutex
 

Detailed Description

Catalogue store state persisted on a disk.

Definition at line 154 of file ctg_store.h.

Field Documentation

◆ cs_ctg_init_mutex

struct m0_be_mutex cs_ctg_init_mutex

Mutex to protect m0_cas_ctg init after load.

Definition at line 178 of file ctg_store.h.

◆ cs_footer

struct m0_format_footer cs_footer

Definition at line 174 of file ctg_store.h.

◆ cs_header

struct m0_format_header cs_header

Definition at line 155 of file ctg_store.h.

◆ cs_meta

struct m0_cas_ctg* cs_meta

Pointer to descriptor of meta catalogue. Descriptor itself is allocated elsewhere. This pointer is there (not in m0_ctg_store) because m0_cas_state is saved in seg_dict.

Definition at line 161 of file ctg_store.h.

◆ cs_rec_nr

uint64_t cs_rec_nr

Total number of records in all catalogues in catalogue store. It's used by repair/re-balance services to report progress.

Definition at line 166 of file ctg_store.h.

◆ cs_rec_size

uint64_t cs_rec_size

Total size of all records in catalogue store. The value is incremented on every record insertion. On record deletion it's not decremented, because before record deletion the size of the value is unknown.

Definition at line 173 of file ctg_store.h.


The documentation for this struct was generated from the following file: