1
/*****************************************************************************
3
Copyright (C) 1997, 2010, Innobase Oy. All Rights Reserved.
4
Copyright (C) 2011 Stewart Smith
6
This program is free software; you can redistribute it and/or modify it under
7
the terms of the GNU General Public License as published by the Free Software
8
Foundation; version 2 of the License.
10
This program is distributed in the hope that it will be useful, but WITHOUT
11
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License along with
15
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
16
St, Fifth Floor, Boston, MA 02110-1301 USA
18
*****************************************************************************/
20
/* this file is the internal functions that are used by xtrabackup.
21
They probably shouldn't be called anywhere else.
27
recv_find_max_checkpoint(log_group_t** max_group,
31
log_block_checksum_is_ok_or_old_format(const byte* block);
34
open_or_create_data_files(ibool* create_new_db,
35
#ifdef UNIV_LOG_ARCHIVE
36
ulint* min_arch_log_no,/*!< out: min of archived log
37
numbers in data files */
38
ulint* max_arch_log_no,/*!< out: max of archived log
39
numbers in data files */
40
#endif /* UNIV_LOG_ARCHIVE */
41
ib_uint64_t* min_flushed_lsn,/*!< out: min of flushed lsn
42
values in data files */
43
ib_uint64_t* max_flushed_lsn,/*!< out: max of flushed lsn
44
values in data files */
45
ulint* sum_of_new_sizes);/*!< out: sum of sizes of the
49
open_or_create_log_file(
50
/*====================*/
51
ibool create_new_db, /*!< in: TRUE if we should create a
53
ibool* log_file_created, /*!< out: TRUE if new log file
55
ibool log_file_has_been_opened,/*!< in: TRUE if a log file has been
56
opened before: then it is an error
57
to try to create another log file */
58
ulint k, /*!< in: log group number */
59
ulint i); /*!< in: log file number in group */
64
dict_index_t* index, /*!< in: index tree */
65
mtr_t* mtr); /*!< in: mtr */
68
btr_node_ptr_get_child(
69
/*===================*/
70
const rec_t* node_ptr,/*!< in: node pointer */
71
dict_index_t* index, /*!< in: index */
72
const ulint* offsets,/*!< in: array returned by rec_get_offsets() */
73
mtr_t* mtr); /*!< in: mtr */
76
recv_check_cp_is_consistent(
77
/*========================*/
78
const byte* buf); /*!< in: buffer containing checkpoint info */
81
fil_file_readdir_next_file(
82
/*=======================*/
83
ulint* err, /*!< out: this is set to DB_ERROR if an error
84
was encountered, otherwise not changed */
85
const char* dirname,/*!< in: directory name or path */
86
os_file_dir_t dir, /*!< in: directory stream */
87
os_file_stat_t* info); /*!< in/out: buffer where the info is returned */