Motr  M0
fol.c File Reference
#include "lib/types.h"
#include "lib/assert.h"
#include "lib/errno.h"
#include "dtm/dtm_internal.h"
#include "dtm/catalogue.h"
#include "dtm/remote.h"
#include "dtm/dtm.h"
#include "dtm/fol.h"
#include "lib/trace.h"
Include dependency graph for fol.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_DTM
 

Enumerations

enum  { M0_DTM_HTYPE_FOL = 5, M0_DTM_HTYPE_FOL_REM = 6 }
 

Functions

M0_INTERNAL void m0_dtm_fol_init (struct m0_dtm_fol *fol, struct m0_dtm *dtm)
 
M0_INTERNAL void m0_dtm_fol_fini (struct m0_dtm_fol *fol)
 
M0_INTERNAL void m0_dtm_fol_add (struct m0_dtm_fol *fol, struct m0_dtm_oper *oper)
 
static const struct m0_uint128fol_id (const struct m0_dtm_history *history)
 
static struct m0_dtm_cataloguerem_fol_cat (struct m0_dtm *dtm)
 
static void fol_persistent (struct m0_dtm_history *history)
 
static void fol_fixed (struct m0_dtm_history *history)
 
static int fol_find (struct m0_dtm *dtm, const struct m0_dtm_history_type *ht, const struct m0_uint128 *id, struct m0_dtm_history **out)
 
M0_INTERNAL void m0_dtm_fol_remote_init (struct m0_dtm_fol_remote *frem, struct m0_dtm *dtm, struct m0_dtm_remote *remote)
 
M0_INTERNAL void m0_dtm_fol_remote_fini (struct m0_dtm_fol_remote *frem)
 
M0_INTERNAL void m0_dtm_fol_remote_add (struct m0_dtm_fol_remote *frem, struct m0_dtm_oper *oper)
 
static const struct m0_uint128fol_remote_id (const struct m0_dtm_history *history)
 
static void fol_remote_persistent (struct m0_dtm_history *history)
 
static int fol_remote_find (struct m0_dtm *dtm, const struct m0_dtm_history_type *ht, const struct m0_uint128 *id, struct m0_dtm_history **out)
 

Variables

static const struct m0_dtm_history_ops fol_ops
 
static const struct m0_dtm_history_ops fol_remote_ops
 
static const struct m0_dtm_history_type_ops fol_htype_ops
 
M0_INTERNAL const struct m0_dtm_history_type m0_dtm_fol_htype
 
static const struct m0_dtm_history_type_ops fol_remote_htype_ops
 
M0_INTERNAL const struct m0_dtm_history_type m0_dtm_fol_remote_htype