#include <jf/jf_config.h>
#include <jf/jf_errors.h>
#include <jf/jf_wrappers.h>
#include <jf/jf_trace.h>
Go to the source code of this file.
Data Structures | |
struct | jf_recind_list_t |
Defines | |
#define | JF_RECIND_NULL_OFFSET -1 |
#define | JF_RECIND_OPER_MUST_COMMIT 0x1 |
#define | JF_RECIND_OPER_MUST_ROLLBACK 0x2 |
#define | JF_RECIND_OPER_UNKNOWN 0x0 |
#define | JF_TRACE_MODULE JF_TRACE_MOD_LIB_RECIND_LIST |
Functions | |
int | jf_recind_list_add (jf_recind_list_t *ril, jf_offset_t elem) |
void | jf_recind_list_create (jf_recind_list_t *ril) |
void | jf_recind_list_destroy (jf_recind_list_t *ril) |
jf_offset_t | jf_recind_list_get_elem (const jf_recind_list_t *ril, size_t pos) |
size_t | jf_recind_list_get_size (const jf_recind_list_t *ril) |
jf_word_t | jf_recind_list_get_uow_type (const jf_recind_list_t *ril) |
int | jf_recind_list_is_safe (const jf_recind_list_t *ril) |
void | jf_recind_list_reset (jf_recind_list_t *ril) |
int | jf_recind_list_set_uow_type (jf_recind_list_t *ril, jf_word_t uow_type) |
|
Null value for record index offset (used to check if an offset is valid) Definition at line 64 of file jf_recind_list.h. Referenced by jf_recind_list_get_elem(). |
|
Record index is related to a record will be committed Definition at line 54 of file jf_recind_list.h. Referenced by jf_journal_cold_recovery_patch_seq(), jf_journal_cold_recovery_update_lists(), and jf_recind_list_set_uow_type(). |
|
Record index is related to a record will be backed out Definition at line 59 of file jf_recind_list.h. Referenced by jf_journal_cold_recovery_patch_seq(), jf_journal_cold_recovery_update_lists(), and jf_recind_list_set_uow_type(). |
|
Record index is related to a record will be committed or backed out Definition at line 49 of file jf_recind_list.h. Referenced by jf_recind_list_reset(), and jf_recind_list_set_uow_type(). |
|
Definition at line 42 of file jf_recind_list.h. |
|
Add an element to a record index list object
References jf_recind_list_t::array, CATCH, jf_offset_t, JF_RC_INTERNAL_ERROR, JF_RC_OBJ_CORRUPTED, JF_RC_OK, JF_RC_REALLOC_ERROR, jf_recind_list_is_safe(), JF_TRACE, jf_recind_list_t::size, and THROW. Referenced by jf_journal_cold_recovery_update_lists(). |
|
Create a new object of type jf_recind_list_t
References jf_recind_list_reset(). Referenced by jf_journal_cold_recovery_prep_pool(), and jf_journal_cold_recovery_update_lists(). |
|
Destroy an object of type jf_recind_list_t NOTE: the object MUST be created calling jf_recind_list_create before this method can be invoked
References jf_recind_list_t::array, jf_recind_list_is_safe(), jf_recind_list_reset(), and JF_TRACE. Referenced by jf_recind_seq_destroy(). |
|
Retrieve an element stored in the object
References jf_recind_list_t::array, jf_offset_t, JF_RECIND_NULL_OFFSET, and jf_recind_list_t::size. Referenced by jf_journal_cold_recovery_patch_seq(). |
|
Retrieve the number of record indexes stored in the object
References jf_recind_list_t::size. Referenced by jf_journal_cold_recovery_patch_seq(), and jf_journal_cold_recovery_update_lists(). |
|
Get unit of work type for a record index list object
References jf_word_t, and jf_recind_list_t::uow_type. Referenced by jf_journal_cold_recovery_patch_seq(). |
|
Is object safe?
References jf_recind_list_t::array, and jf_recind_list_t::size. Referenced by jf_recind_list_add(), and jf_recind_list_destroy(). |
|
Reset a jf_recind_list_t object
References jf_recind_list_t::array, JF_RECIND_OPER_UNKNOWN, JF_TRACE, jf_recind_list_t::size, and jf_recind_list_t::uow_type. Referenced by jf_recind_list_create(), and jf_recind_list_destroy(). |
|
Set unit of work type for a record index list object
References JF_RC_OK, JF_RC_OUT_OF_RANGE, JF_RECIND_OPER_MUST_COMMIT, JF_RECIND_OPER_MUST_ROLLBACK, JF_RECIND_OPER_UNKNOWN, jf_word_t, and jf_recind_list_t::uow_type. Referenced by jf_journal_cold_recovery_update_lists(). |