Motr  M0
m0_be_log_record Struct Reference

#include <log.h>

Collaboration diagram for m0_be_log_record:
Collaboration graph

Data Fields

struct m0_be_loglgr_log
 
int lgr_state
 
bool lgr_need_discard
 
m0_bindex_t lgr_last_discarded
 
m0_bindex_t lgr_position
 
m0_bcount_t lgr_size
 
m0_bindex_t lgr_prev_pos
 
m0_bcount_t lgr_prev_size
 
m0_bindex_t lgr_log_header_discarded
 
uint64_t lgr_magic
 
struct m0_tlink lgr_linkage
 
struct m0_tlink lgr_sched_linkage
 
int lgr_io_nr
 
struct m0_be_log_iolgr_io [M0_BE_LOG_RECORD_IO_NR_MAX]
 
struct m0_be_oplgr_op [M0_BE_LOG_RECORD_IO_NR_MAX]
 
struct m0_be_op lgr_record_op
 
struct m0_be_oplgr_user_op
 
struct m0_be_fmt_log_record_header lgr_header
 
struct m0_be_fmt_log_record_footer lgr_footer
 
bool lgr_write_header
 

Detailed Description

This structure represents minimal unit for log operations.

Definition at line 323 of file log.h.

Field Documentation

◆ lgr_footer

struct m0_be_fmt_log_record_footer lgr_footer

Definition at line 368 of file log.h.

◆ lgr_header

struct m0_be_fmt_log_record_header lgr_header

Definition at line 367 of file log.h.

◆ lgr_io

Definition at line 360 of file log.h.

◆ lgr_io_nr

int lgr_io_nr

Definition at line 359 of file log.h.

◆ lgr_last_discarded

m0_bindex_t lgr_last_discarded

Last known value of the Discarded pointer. User can use it for generation of tx_group's commit block.

Definition at line 332 of file log.h.

◆ lgr_linkage

struct m0_tlink lgr_linkage

Definition at line 355 of file log.h.

◆ lgr_log

struct m0_be_log* lgr_log

Definition at line 324 of file log.h.

◆ lgr_log_header_discarded

m0_bindex_t lgr_log_header_discarded

It MUST be set to a log pointer for which all log records with lgr_position less than the pointer have already became persistent.

It's set to BE log header flh_discarded pointer at the time when m0_be_log_record_io_prepare() is executed for this record.

Use case: discard FOL records (sent as FDMI records) at FDMI plugin. This value allows to filter out FDMI records that are never going to be resent because BE log records before this pointer are never going to be recovered (they are already fully written to BE segments and BE log header is updated to reflect that).

Definition at line 352 of file log.h.

◆ lgr_magic

uint64_t lgr_magic

Definition at line 354 of file log.h.

◆ lgr_need_discard

bool lgr_need_discard

Specifies if record is discarded after read operation.

Definition at line 327 of file log.h.

◆ lgr_op

Definition at line 361 of file log.h.

◆ lgr_position

m0_bindex_t lgr_position

Logical offset within log. Is set during space allocation.

Definition at line 334 of file log.h.

◆ lgr_prev_pos

m0_bindex_t lgr_prev_pos

Pointer to the previous record inside log

Definition at line 337 of file log.h.

◆ lgr_prev_size

m0_bcount_t lgr_prev_size

Definition at line 338 of file log.h.

◆ lgr_record_op

struct m0_be_op lgr_record_op

Definition at line 362 of file log.h.

◆ lgr_sched_linkage

struct m0_tlink lgr_sched_linkage

Definition at line 356 of file log.h.

◆ lgr_size

m0_bcount_t lgr_size

Definition at line 335 of file log.h.

◆ lgr_state

int lgr_state

Definition at line 325 of file log.h.

◆ lgr_user_op

struct m0_be_op* lgr_user_op

Notification about log record completion

Definition at line 365 of file log.h.

◆ lgr_write_header

bool lgr_write_header

Definition at line 374 of file log.h.


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