KMR
Classes | Macros | Typedefs | Enumerations
kmrckpt.h File Reference

Checkpoint/Restart Support. More...

Go to the source code of this file.

Classes

struct  kmr_ckpt_ctx
 
struct  kmr_ckpt_data
 
struct  kmr_ckpt_data_file
 
struct  kmr_ckpt_kvs_chains
 
struct  kmr_ckpt_list
 
struct  kmr_ckpt_list_item
 
struct  kmr_ckpt_log
 
struct  kmr_ckpt_log_entry
 
struct  kmr_ckpt_merge
 
struct  kmr_ckpt_merge_ctx
 
struct  kmr_ckpt_merge_source
 
struct  kmr_ckpt_operation
 
struct  kmr_ckpt_prev_state
 
struct  kv_position
 

Macros

#define KMR_CKPT_DIRLEN   256
 
#define KMR_CKPT_DIRNAME   "ckptdir"
 
#define KMR_CKPT_DUMMY_ID   0
 
#define KMR_CKPT_FNAME_PREFIX   "kmrckpt"
 
#define KMR_CKPT_LIST_MAX   1000
 
#define KMR_CKPT_MSGLEN   512
 
#define KMR_CKPT_PATHLEN   512
 

Typedefs

typedef void *(* kmr_ckpt_list_alocfn_t) (void *)
 
typedef int(* kmr_ckpt_list_compfn_t) (void *, void *)
 
typedef void(* kmr_ckpt_list_freefn_t) (void *)
 

Enumerations

enum  kmr_ckpt_log_state {
  KMR_CKPT_LOG_WHOLE_START, KMR_CKPT_LOG_WHOLE_FINISH, KMR_CKPT_LOG_BLOCK_START, KMR_CKPT_LOG_BLOCK_ADD,
  KMR_CKPT_LOG_BLOCK_FINISH, KMR_CKPT_LOG_INDEX_START, KMR_CKPT_LOG_INDEX_ADD, KMR_CKPT_LOG_INDEX_FINISH,
  KMR_CKPT_LOG_DELETE_START, KMR_CKPT_LOG_DELETE_FINISH, KMR_CKPT_LOG_DELETABLE, KMR_CKPT_LOG_PROGRESS,
  KMR_CKPT_LOG_SKIPPED, KMR_CKPT_LOG_LOCK_START, KMR_CKPT_LOG_LOCK_FINISH
}
 
enum  kmr_ckpt_mode { KMR_CKPT_ALL, KMR_CKPT_SELECTIVE }
 Checkpoint modes. More...
 
enum  kmr_ckpt_type { KMR_CKPT_DATA, KMR_CKPT_LOG }
 

Detailed Description

Checkpoint/Restart Support.

Checkpoint/Restart provides two modes; SAVE_ALL, SAVE_SELECTIVE. In SAVE_ALL mode, checkpoints of all key-value stores are taken. IN SAVE_SELECTIVE mode, only checkpoints of user-specified key-value stores are taken.

Definition in file kmrckpt.h.

Enumeration Type Documentation

Checkpoint modes.

KMR_CKPT_ALL takes checkpoints of all key-value stores. KMR_CKPT_SELECTIVE takes checkpoints of key-value stores that user specified.

Definition at line 23 of file kmrckpt.h.