Motr  M0
recovery.c File Reference
#include "lib/trace.h"
#include "be/recovery.h"
#include "lib/arith.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "be/fmt.h"
#include "be/log.h"
#include "motr/magic.h"
Include dependency graph for recovery.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE
 

Functions

 M0_TL_DESCR_DEFINE (log_record_iter, "m0_be_log_record_iter list in recovery", static, struct m0_be_log_record_iter, lri_linkage, lri_magic, M0_BE_RECOVERY_MAGIC, M0_BE_RECOVERY_HEAD_MAGIC)
 
 M0_TL_DEFINE (log_record_iter, static, struct m0_be_log_record_iter)
 
M0_INTERNAL void m0_be_recovery_init (struct m0_be_recovery *rvr, struct m0_be_recovery_cfg *cfg)
 
M0_INTERNAL void m0_be_recovery_fini (struct m0_be_recovery *rvr)
 
static int be_recovery_log_record_iter_new (struct m0_be_log_record_iter **iter)
 
static void be_recovery_log_record_iter_destroy (struct m0_be_log_record_iter *iter)
 
M0_INTERNAL int m0_be_recovery_run (struct m0_be_recovery *rvr)
 
M0_INTERNAL bool m0_be_recovery_log_record_available (struct m0_be_recovery *rvr)
 
M0_INTERNAL void m0_be_recovery_log_record_get (struct m0_be_recovery *rvr, struct m0_be_log_record_iter *iter)
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_BE

Definition at line 23 of file recovery.c.

Function Documentation

◆ be_recovery_log_record_iter_destroy()

static void be_recovery_log_record_iter_destroy ( struct m0_be_log_record_iter iter)
static

Definition at line 176 of file recovery.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ be_recovery_log_record_iter_new()

static int be_recovery_log_record_iter_new ( struct m0_be_log_record_iter **  iter)
static

Definition at line 164 of file recovery.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ M0_TL_DEFINE()

M0_TL_DEFINE ( log_record_iter  ,
static  ,
struct m0_be_log_record_iter   
)

◆ M0_TL_DESCR_DEFINE()

M0_TL_DESCR_DEFINE ( log_record_iter  ,
"m0_be_log_record_iter list in recovery"  ,
static  ,
struct m0_be_log_record_iter  ,
lri_linkage  ,
lri_magic  ,
M0_BE_RECOVERY_MAGIC  ,
M0_BE_RECOVERY_HEAD_MAGIC   
)