Motr  M0
m0_be_dtm0_log Struct Reference

#include <dtm0_log.h>

Collaboration diagram for m0_be_dtm0_log:
Collaboration graph

Data Fields

bool dl_is_persistent
 
struct m0_mutex dl_lock
 
struct m0_be_segdl_seg
 
struct m0_dtm0_clk_srcdl_cs
 
union {
   struct m0_be_list *   dl_persist
 
   struct m0_tl *   dl_inmem
 
u
 

Detailed Description

m0_be_dtm0_log_rec structure

A DTM0 log is represented by m0_be_dtm0_log structure. The important fields in this structure are:

  • dl_is_persistent: This is a flag to distinguish between a volatile (client-side) log and a persistent (server-side) log.
  • dl_cs: A pointer to the type of clock used to generate the timestamps for the log records.

Definition at line 192 of file dtm0_log.h.

Field Documentation

◆ dl_cs

struct m0_dtm0_clk_src* dl_cs

DTM0 clock source

Definition at line 201 of file dtm0_log.h.

◆ dl_inmem

struct m0_tl* dl_inmem

Volatile list, used if !dl_is_persistent

Definition at line 206 of file dtm0_log.h.

◆ dl_is_persistent

bool dl_is_persistent

Indicates if the structure is a persistent or volatile

Definition at line 194 of file dtm0_log.h.

◆ dl_lock

struct m0_mutex dl_lock

dl_lock protects access to the dl_list/dl_tlist. This lock should be held before performing any operations on the log involving a log record search or insert.

Definition at line 198 of file dtm0_log.h.

◆ dl_persist

struct m0_be_list* dl_persist

Persistent list, used if dl_is_persistent

Definition at line 204 of file dtm0_log.h.

◆ dl_seg

struct m0_be_seg* dl_seg

Definition at line 199 of file dtm0_log.h.

◆ u

union { ... } u

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