drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
xtrabackup_api.h
1/*****************************************************************************
2
3Copyright (C) 1997, 2010, Innobase Oy. All Rights Reserved.
4Copyright (C) 2011 Stewart Smith
5
6This program is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free Software
8Foundation; version 2 of the License.
9
10This program is distributed in the hope that it will be useful, but WITHOUT
11ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License along with
15this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
16St, Fifth Floor, Boston, MA 02110-1301 USA
17
18*****************************************************************************/
19
20/* this file is the internal functions that are used by xtrabackup.
21 They probably shouldn't be called anywhere else.
22 */
23
24#pragma once
25
26ulint
27recv_find_max_checkpoint(log_group_t** max_group,
28 ulint* max_field);
29
30ibool
31log_block_checksum_is_ok_or_old_format(const byte* block);
32
33ulint
34open_or_create_data_files(ibool* create_new_db,
35#ifdef UNIV_LOG_ARCHIVE
36 ulint* min_arch_log_no,
38 ulint* max_arch_log_no,
40#endif /* UNIV_LOG_ARCHIVE */
41 ib_uint64_t* min_flushed_lsn,
43 ib_uint64_t* max_flushed_lsn,
45 ulint* sum_of_new_sizes);
47
48ulint
49open_or_create_log_file(
50/*====================*/
51 ibool create_new_db,
53 ibool* log_file_created,
55 ibool log_file_has_been_opened,
58 ulint k,
59 ulint i);
60
62btr_root_block_get(
63/*===============*/
64 dict_index_t* index,
65 mtr_t* mtr);
66
68btr_node_ptr_get_child(
69/*===================*/
70 const rec_t* node_ptr,
71 dict_index_t* index,
72 const ulint* offsets,
73 mtr_t* mtr);
74
75ibool
76recv_check_cp_is_consistent(
77/*========================*/
78 const byte* buf);
79
80int
81fil_file_readdir_next_file(
82/*=======================*/
83 ulint* err,
85 const char* dirname,
86 os_file_dir_t dir,
87 os_file_stat_t* info);
struct buf_block_struct buf_block_t
Definition buf0types.h:33
struct log_group_struct log_group_t
Definition log0log.h:48
DIR * os_file_dir_t
Definition os0file.h:374