Motr  M0
ltx.c File Reference
#include "lib/assert.h"
#include "lib/locality.h"
#include "dtm/update.h"
#include "dtm/ltx.h"
Include dependency graph for ltx.c:

Go to the source code of this file.

Enumerations

enum  { M0_DTM_HTYPE_LTX = 7 }
 

Functions

static void ltx_persistent_hook (const struct m0_be_tx *tx)
 
M0_INTERNAL void m0_dtm_ltx_init (struct m0_dtm_ltx *ltx, struct m0_dtm *dtm, struct m0_be_domain *dom)
 
M0_INTERNAL void m0_dtm_ltx_open (struct m0_dtm_ltx *ltx)
 
M0_INTERNAL void m0_dtm_ltx_close (struct m0_dtm_ltx *ltx)
 
M0_INTERNAL void m0_dtm_ltx_fini (struct m0_dtm_ltx *ltx)
 
M0_INTERNAL void m0_dtm_ltx_add (struct m0_dtm_ltx *ltx, struct m0_dtm_oper *oper)
 
static int ltx_find (struct m0_dtm *dtm, const struct m0_dtm_history_type *ht, const struct m0_uint128 *id, struct m0_dtm_history **out)
 
static const struct m0_uint128ltx_id (const struct m0_dtm_history *history)
 
static void ltx_noop (struct m0_dtm_history *history)
 

Variables

static const struct m0_dtm_history_ops ltx_ops
 
static const struct m0_uint128 ltxid = M0_UINT128(0x10ca1, 0x10ca1)
 
static const struct m0_dtm_history_type_ops ltx_htype_ops
 
M0_INTERNAL const struct m0_dtm_history_type m0_dtm_ltx_htype