mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
86927cc712
InnoDB never supported more than one copy of a redo log. There were provisions to do that. For Mariabackup, let us clean up this code. log_sys_init(): Renamed from log_init(). log_set_capacity(): Renamed from log_calc_max_ages(). log_init(): Renamed from log_group_init(). Remove the parameters id, space_id. Let the caller invoke log_set_capacity() when needed. log_group_t: Remove id, space_id, log_groups. log_t: Replace log_groups with a single log. recv_find_max_checkpoint(): Declare globally. Remove the first parameter. xtrabackup_choose_lsn_offset(): Remove (dead code).
77 lines
2.5 KiB
C
77 lines
2.5 KiB
C
/******************************************************
|
|
Copyright (c) 2012 Percona LLC and/or its affiliates.
|
|
|
|
Declarations of XtraBackup functions called by InnoDB code.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; version 2 of the License.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*******************************************************/
|
|
|
|
#ifndef xb0xb_h
|
|
#define xb0xb_h
|
|
|
|
|
|
extern void os_io_init_simple(void);
|
|
extern pfs_os_file_t files[1000];
|
|
extern const char *innodb_checksum_algorithm_names[];
|
|
extern TYPELIB innodb_checksum_algorithm_typelib;
|
|
extern dberr_t open_or_create_data_files(
|
|
ibool* create_new_db,
|
|
#ifdef UNIV_LOG_ARCHIVE
|
|
lsn_t* min_arch_log_no,
|
|
lsn_t* max_arch_log_no,
|
|
#endif
|
|
lsn_t* min_flushed_lsn,
|
|
lsn_t* max_flushed_lsn,
|
|
ulint* sum_of_new_sizes)
|
|
;
|
|
int
|
|
fil_file_readdir_next_file(
|
|
/*=======================*/
|
|
dberr_t* err, /*!< out: this is set to DB_ERROR if an error
|
|
was encountered, otherwise not changed */
|
|
const char* dirname,/*!< in: directory name or path */
|
|
os_file_dir_t dir, /*!< in: directory stream */
|
|
os_file_stat_t* info) /*!< in/out: buffer where the
|
|
info is returned */;
|
|
buf_block_t* btr_node_ptr_get_child(
|
|
const rec_t* node_ptr,/*!< in: node pointer */
|
|
dict_index_t* index, /*!< in: index */
|
|
const ulint* offsets,/*!< in: array returned by rec_get_offsets() */
|
|
mtr_t* mtr) /*!< in: mtr */;
|
|
|
|
buf_block_t*
|
|
btr_root_block_get(
|
|
/*===============*/
|
|
const dict_index_t* index, /*!< in: index tree */
|
|
ulint mode, /*!< in: either RW_S_LATCH
|
|
or RW_X_LATCH */
|
|
mtr_t* mtr) /*!< in: mtr */;
|
|
fil_space_t*
|
|
fil_space_get_by_name(const char *);
|
|
ibool
|
|
recv_check_cp_is_consistent(const byte* buf);
|
|
void
|
|
innodb_log_checksum_func_update(
|
|
/*============================*/
|
|
ulint algorithm) /*!< in: algorithm */;
|
|
dberr_t
|
|
srv_undo_tablespaces_init(
|
|
/*======================*/
|
|
ibool create_new_db,
|
|
ibool backup_mode,
|
|
const ulint n_conf_tablespaces,
|
|
ulint* n_opened);
|
|
|
|
#endif
|