~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/innobase/include/xtrabackup_api.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 
 
3
Copyright (C) 1997, 2010, Innobase Oy. All Rights Reserved.
 
4
Copyright (C) 2011 Stewart Smith
 
5
 
 
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.
 
9
 
 
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.
 
13
 
 
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
 
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
 
 
26
ulint
 
27
recv_find_max_checkpoint(log_group_t**  max_group,
 
28
                         ulint*         max_field);
 
29
 
 
30
ibool
 
31
log_block_checksum_is_ok_or_old_format(const byte* block);
 
32
 
 
33
ulint
 
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
 
46
                                        new files added */
 
47
 
 
48
ulint
 
49
open_or_create_log_file(
 
50
/*====================*/
 
51
        ibool   create_new_db,          /*!< in: TRUE if we should create a
 
52
                                        new database */
 
53
        ibool*  log_file_created,       /*!< out: TRUE if new log file
 
54
                                        created */
 
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 */
 
60
 
 
61
buf_block_t*
 
62
btr_root_block_get(
 
63
/*===============*/
 
64
        dict_index_t*   index,  /*!< in: index tree */
 
65
        mtr_t*          mtr);   /*!< in: mtr */
 
66
 
 
67
buf_block_t*
 
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 */
 
74
 
 
75
ibool
 
76
recv_check_cp_is_consistent(
 
77
/*========================*/
 
78
                            const byte* buf);   /*!< in: buffer containing checkpoint info */
 
79
 
 
80
int
 
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 */