CUBRID Engine
latest
|
#include <log_storage.hpp>
Public Member Functions | |
log_header () | |
Definition at line 113 of file log_storage.hpp.
|
inline |
Definition at line 175 of file log_storage.hpp.
References LOG_SYSTEM_TRANID, MVCCID_FIRST, MVCCID_NULL, and NULL_LSA.
LOG_LSA log_header::append_lsa |
Definition at line 139 of file log_storage.hpp.
Referenced by la_apply_log_file(), la_log_commit(), la_log_fetch(), la_log_page_check(), la_print_log_header(), log_active_log_header_next_scan(), LOG_APPEND_PTR(), log_change_tran_as_completed(), log_complete_for_2pc(), log_dump_header(), log_final(), log_find_end_log(), log_get_append_lsa(), log_initialize_internal(), log_recovery(), log_recovery_analysis(), log_recovery_resetlog(), LOG_RESET_APPEND_LSA(), logpb_append_crumbs(), logpb_append_data(), logpb_append_next_record(), logpb_archive_active_log(), logpb_backup(), logpb_checkpoint(), logpb_copy_page_from_file(), logpb_copy_page_from_log_buffer(), logpb_dump_information(), logpb_dump_log_header(), logpb_end_append(), logpb_fetch_header(), logpb_fetch_page(), logpb_fetch_start_append_page(), logpb_fetch_start_append_page_new(), logpb_flush_all_append_pages(), logpb_initialize_header(), logpb_next_append_page(), logpb_read_page_from_file(), logpb_start_append(), and xlog_dump().
int log_header::avg_nlocks |
Definition at line 132 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_dump_header(), logpb_checkpoint(), and logpb_initialize_header().
int log_header::avg_ntrans |
Definition at line 131 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), logpb_checkpoint(), and logpb_initialize_header().
LOG_HDR_BKUP_LEVEL_INFO log_header::bkinfo[FILEIO_BACKUP_UNDEFINED_LEVEL] |
Definition at line 155 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), logpb_backup(), logpb_initialize_backup_info(), and logpb_initialize_header().
LOG_LSA log_header::bkup_level0_lsa |
Definition at line 146 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_dump_header(), logpb_backup(), logpb_dump_log_header(), logpb_initialize_header(), and logpb_rename_all_volumes_files().
LOG_LSA log_header::bkup_level1_lsa |
Definition at line 147 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_dump_header(), logpb_backup(), logpb_dump_log_header(), logpb_initialize_header(), and logpb_rename_all_volumes_files().
LOG_LSA log_header::bkup_level2_lsa |
Definition at line 148 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_dump_header(), logpb_backup(), logpb_dump_log_header(), logpb_initialize_header(), and logpb_rename_all_volumes_files().
LOG_LSA log_header::chkpt_lsa |
Definition at line 140 of file log_storage.hpp.
Referenced by la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_final(), log_get_db_start_parameters(), log_get_restart_lsa(), log_initialize_internal(), log_recovery(), log_recovery_resetlog(), log_recreate(), log_skip_logging(), logpb_background_archiving(), logpb_backup(), logpb_checkpoint(), logpb_copy_database(), logpb_dump_log_header(), logpb_initialize_header(), logpb_remove_archive_logs(), and logpb_rename_all_volumes_files().
INT8 log_header::db_charset |
Definition at line 134 of file log_storage.hpp.
Referenced by check_and_fix_compat_level(), fix_codeset_in_active_log(), la_find_log_pagesize(), la_print_log_header(), log_active_log_header_next_scan(), logpb_find_header_parameters(), and logpb_initialize_header().
float log_header::db_compatibility |
Definition at line 123 of file log_storage.hpp.
Referenced by check_and_fix_compat_level(), log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), logpb_delete(), logpb_find_header_parameters(), logpb_initialize_header(), and undo_fix_compat_level().
INT64 log_header::db_creation |
Definition at line 119 of file log_storage.hpp.
Referenced by disk_can_overwrite_data_volume(), la_get_last_ha_applied_info(), la_print_log_header(), la_update_ha_apply_info_log_record_time(), la_update_ha_last_applied_info(), log_active_log_header_next_scan(), log_dump_header(), log_get_db_start_parameters(), log_initialize_internal(), log_recovery_notpartof_volumes(), log_recovery_resetlog(), log_recreate(), logpb_archive_active_log(), logpb_backup(), logpb_copy_database(), logpb_fetch_from_archive(), logpb_find_header_parameters(), logpb_find_oldest_available_page_id(), logpb_initialize_header(), and logpb_rename_all_volumes_files().
PGLENGTH log_header::db_iopagesize |
Definition at line 124 of file log_storage.hpp.
Referenced by la_find_log_pagesize(), la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), logpb_delete(), logpb_find_header_parameters(), and logpb_initialize_header().
PGLENGTH log_header::db_logpagesize |
Definition at line 126 of file log_storage.hpp.
Referenced by check_and_fix_compat_level(), la_find_log_pagesize(), la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), logpb_delete(), logpb_find_header_parameters(), logpb_initialize_header(), logpb_write_page_to_disk(), and logpb_writev_append_pages().
char log_header::db_release[REL_MAX_RELEASE_LENGTH] |
Definition at line 121 of file log_storage.hpp.
Referenced by la_print_log_header(), log_active_log_header_next_scan(), log_active_log_header_start_scan(), log_dump_header(), log_initialize_internal(), and logpb_initialize_header().
INT64 log_header::db_restore_time |
Definition at line 170 of file log_storage.hpp.
Referenced by la_print_log_header(), and log_set_db_restore_time().
bool log_header::does_block_need_vacuum |
Definition at line 172 of file log_storage.hpp.
Referenced by logpb_vacuum_reset_log_header_cache(), prior_lsa_next_record_internal(), prior_update_header_mvcc_info(), vacuum_data::set_oldest_unvacuumed_on_boot(), vacuum_consume_buffer_log_blocks(), vacuum_produce_log_block_data(), vacuum_recover_lost_block_data(), and xvacuum().
INT32 log_header::dummy |
Definition at line 118 of file log_storage.hpp.
INT8 log_header::dummy3 |
Definition at line 136 of file log_storage.hpp.
INT8 log_header::dummy4 |
Definition at line 137 of file log_storage.hpp.
LOG_LSA log_header::eof_lsa |
Definition at line 160 of file log_storage.hpp.
Referenced by la_apply_log_file(), la_get_last_ha_applied_info(), la_get_next_repl_item_from_log(), la_log_commit(), la_log_page_check(), la_print_log_header(), log_active_log_header_next_scan(), log_get_eof_lsa(), log_initialize_internal(), logpb_copy_database(), logpb_flush_all_append_pages(), logpb_initialize_header(), logpb_start_append(), and logwr_log_ha_filestat_to_string().
LOG_PAGEID log_header::fpageid |
Definition at line 138 of file log_storage.hpp.
Referenced by la_log_phypageid(), la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), log_recovery_resetlog(), logpb_dump_log_header(), logpb_initialize_header(), and logpb_next_append_page().
int log_header::ha_file_status |
Definition at line 159 of file log_storage.hpp.
Referenced by la_apply_log_file(), la_change_state(), la_print_log_header(), log_active_log_header_next_scan(), logpb_initialize_header(), and logwr_log_ha_filestat_to_string().
INT64 log_header::ha_promotion_time |
Definition at line 169 of file log_storage.hpp.
Referenced by la_print_log_header(), and log_set_ha_promotion_time().
int log_header::ha_server_state |
Definition at line 158 of file log_storage.hpp.
Referenced by la_apply_log_file(), la_change_state(), la_print_log_header(), log_active_log_header_next_scan(), logpb_initialize_header(), and logwr_log_ha_filestat_to_string().
bool log_header::has_logging_been_skipped |
Definition at line 150 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_commit(), log_dump_header(), log_final(), log_recovery(), and logpb_initialize_header().
bool log_header::is_shutdown |
Definition at line 127 of file log_storage.hpp.
Referenced by check_and_fix_compat_level(), la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_final(), log_initialize_internal(), log_recovery_resetlog(), and logpb_initialize_header().
int log_header::last_arv_num_for_syscrashes |
Definition at line 144 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), log_recovery_resetlog(), logpb_archive_active_log(), logpb_backup(), logpb_checkpoint(), logpb_dump_log_header(), logpb_initialize_header(), logpb_remove_archive_logs(), logpb_remove_archive_logs_exceed_limit(), and logpb_rename_all_volumes_files().
int log_header::last_deleted_arv_num |
Definition at line 145 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_dump_header(), log_recovery_notpartof_archives(), log_recovery_resetlog(), logpb_delete(), logpb_dump_log_header(), logpb_initialize_header(), logpb_remove_all_in_log_path(), logpb_remove_archive_logs(), logpb_remove_archive_logs_exceed_limit(), and logpb_rename_all_volumes_files().
char log_header::magic[CUBRID_MAGIC_MAX_LENGTH] |
Definition at line 116 of file log_storage.hpp.
Referenced by la_find_log_pagesize(), la_print_log_header(), log_active_log_header_next_scan(), log_active_log_header_start_scan(), log_dump_header(), and logpb_initialize_header().
bool log_header::mark_will_del |
Definition at line 171 of file log_storage.hpp.
Referenced by check_reinit_copylog(), la_find_log_pagesize(), and la_print_log_header().
MVCCID log_header::mvcc_next_id |
Definition at line 130 of file log_storage.hpp.
Referenced by btree_check_valid_record(), btree_leaf_change_first_object(), mvcctable::get_new_mvccid(), mvcctable::get_two_new_mvccid(), log_active_log_header_next_scan(), log_dump_header(), log_recovery_redo(), logpb_copy_log_header(), logpb_initialize_header(), logtb_initialize_mvcc_testing(), mvcctable::reset_start_mvccid(), vacuum_data::set_oldest_unvacuumed_on_boot(), vacuum_rv_notify_dropped_file(), vacuum_rv_redo_add_dropped_file(), vacuum_rv_replace_dropped_file(), and xvacuum().
LOG_LSA log_header::mvcc_op_log_lsa |
Definition at line 165 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_recovery_redo(), log_recovery_resetlog(), logpb_dump_log_header(), logpb_remove_archive_logs_exceed_limit(), logpb_vacuum_reset_log_header_cache(), prior_lsa_next_record_internal(), prior_update_header_mvcc_info(), vacuum_data_load_and_recover(), and vacuum_recover_lost_block_data().
MVCCID log_header::newest_block_mvccid |
Definition at line 167 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), logpb_dump_log_header(), logpb_vacuum_reset_log_header_cache(), prior_update_header_mvcc_info(), vacuum_produce_log_block_data(), and vacuum_recover_lost_block_data().
TRANID log_header::next_trid |
Definition at line 129 of file log_storage.hpp.
Referenced by la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_find_end_log(), log_recovery_analysis(), log_rv_analysis_log_end(), logpb_archive_active_log(), logpb_initialize_header(), and logtb_get_new_tran_id().
DKNPAGES log_header::npages |
Definition at line 133 of file log_storage.hpp.
Referenced by la_find_archive_num(), la_log_phypageid(), la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), logpb_archive_active_log(), logpb_copy_database(), logpb_initialize_header(), logpb_rename_all_volumes_files(), and xlog_dump().
int log_header::nxarv_num |
Definition at line 143 of file log_storage.hpp.
Referenced by la_apply_log_file(), la_find_archive_num(), la_find_last_deleted_arv_num(), la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), log_recovery_notpartof_archives(), log_recovery_resetlog(), logpb_archive_active_log(), logpb_backup(), logpb_checkpoint(), logpb_dump_log_header(), logpb_fetch_from_archive(), logpb_find_oldest_available_arv_num(), logpb_get_guess_archive_num(), logpb_initialize_header(), logpb_is_archive_available(), logpb_is_log_active_from_backup_useful(), logpb_remove_archive_logs(), logpb_remove_archive_logs_exceed_limit(), logpb_rename_all_volumes_files(), and logwr_log_ha_filestat_to_string().
LOG_PAGEID log_header::nxarv_pageid |
Definition at line 141 of file log_storage.hpp.
Referenced by la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_initialize_internal(), log_recovery_resetlog(), logpb_archive_active_log(), logpb_dump_log_header(), logpb_find_oldest_available_page_id(), logpb_initialize_header(), and logwr_log_ha_filestat_to_string().
LOG_PHY_PAGEID log_header::nxarv_phy_pageid |
Definition at line 142 of file log_storage.hpp.
Referenced by la_print_log_header(), log_active_log_header_next_scan(), log_dump_header(), log_recovery_resetlog(), logpb_archive_active_log(), logpb_dump_log_header(), logpb_initialize_header(), and logwr_log_ha_filestat_to_string().
MVCCID log_header::oldest_visible_mvccid |
Definition at line 166 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), logpb_dump_log_header(), logpb_vacuum_reset_log_header_cache(), prior_update_header_mvcc_info(), vacuum_data::set_oldest_unvacuumed_on_boot(), and vacuum_recover_lost_block_data().
int log_header::perm_status_obsolete |
Definition at line 153 of file log_storage.hpp.
Referenced by logpb_initialize_header().
char log_header::prefix_name[MAXLOGNAME] |
Definition at line 149 of file log_storage.hpp.
Referenced by la_delete_ha_apply_info(), la_find_archive_num(), la_find_last_deleted_arv_num(), la_find_log_pagesize(), la_get_last_ha_applied_info(), la_get_range_of_archive(), la_insert_ha_apply_info(), la_log_fetch_from_archive(), la_update_ha_apply_info_log_record_time(), la_update_ha_apply_info_start_time(), la_update_ha_last_applied_info(), log_active_log_header_next_scan(), log_active_log_header_start_scan(), log_dump_header(), log_initialize_internal(), logpb_backup(), logpb_find_header_parameters(), logpb_initialize_header(), and logpb_rename_all_volumes_files().
LOG_LSA log_header::smallest_lsa_at_last_chkpt |
Definition at line 162 of file log_storage.hpp.
Referenced by log_active_log_header_next_scan(), log_final(), log_initialize_internal(), logpb_backup(), logpb_checkpoint(), and logpb_initialize_header().
VACUUM_LOG_BLOCKID log_header::vacuum_last_blockid |
Definition at line 152 of file log_storage.hpp.
Referenced by logpb_initialize_header(), logpb_remove_archive_logs_exceed_limit(), vacuum_consume_buffer_log_blocks(), vacuum_data_load_and_recover(), and vacuum_sa_reflect_last_blockid().
bool log_header::was_active_log_reset |
Definition at line 173 of file log_storage.hpp.
Referenced by log_recovery_resetlog(), logpb_archive_active_log(), and logpb_read_page_from_file().
bool log_header::was_copied |
Definition at line 135 of file log_storage.hpp.
Referenced by boot_after_copydb(), and logpb_copy_log_header().