#include <stdio.h>
#include <assert.h>
#include <mnemosyne.h>
#include <pcm.h>
#include <cuckoo_hash/PointerHashInline.h>
#include <debug.h>
#include "tmlog_base.h"
Go to the source code of this file.
Defines | |
#define | _DEBUG_PRINT_TMLOG(tmlog) |
Functions | |
m_result_t | m_tmlog_base_alloc (m_log_dsc_t *log_dsc) |
m_result_t | m_tmlog_base_init (pcm_storeset_t *set, m_log_t *log, m_log_dsc_t *log_dsc) |
m_result_t | m_tmlog_base_truncation_init (pcm_storeset_t *set, m_log_dsc_t *log_dsc) |
m_result_t | m_tmlog_base_truncation_prepare_next (pcm_storeset_t *set, m_log_dsc_t *log_dsc) |
m_result_t | m_tmlog_base_truncation_do (pcm_storeset_t *set, m_log_dsc_t *log_dsc) |
m_result_t | m_tmlog_base_recovery_init (pcm_storeset_t *set, m_log_dsc_t *log_dsc) |
m_result_t | m_tmlog_base_recovery_prepare_next (pcm_storeset_t *set, m_log_dsc_t *log_dsc) |
m_result_t | m_tmlog_base_recovery_do (pcm_storeset_t *set, m_log_dsc_t *log_dsc) |
m_result_t | m_tmlog_base_report_stats (m_log_dsc_t *log_dsc) |
Variables | |
m_log_ops_t | tmlog_base_ops |
Definition in file tmlog_base.c.
#define _DEBUG_PRINT_TMLOG | ( | tmlog | ) |
Value:
printf("stable_tail: %lu\n", tmlog->phlog_base.nvmd->tail); \ printf("stable_head: %lu\n", tmlog->phlog_base.nvmd->head); \ printf("tail : %lu\n", tmlog->phlog_base.tail); \ printf("head : %lu\n", tmlog->phlog_base.head); \ printf("read_index : %lu\n", tmlog->phlog_base.read_index);
Definition at line 65 of file tmlog_base.c.
Referenced by m_tmlog_base_recovery_do(), m_tmlog_base_truncation_do(), m_tmlog_tornbit_recovery_do(), and m_tmlog_tornbit_truncation_do().
Initial value:
{ m_tmlog_base_alloc, m_tmlog_base_init, m_tmlog_base_truncation_init, m_tmlog_base_truncation_prepare_next, m_tmlog_base_truncation_do, m_tmlog_base_recovery_init, m_tmlog_base_recovery_prepare_next, m_tmlog_base_recovery_do, m_tmlog_base_report_stats, }
Definition at line 49 of file tmlog_base.c.