Drizzled Public API Documentation

xtrabackup_api.h
00001 /*****************************************************************************
00002 
00003 Copyright (C) 1997, 2010, Innobase Oy. All Rights Reserved.
00004 Copyright (C) 2011 Stewart Smith
00005 
00006 This program is free software; you can redistribute it and/or modify it under
00007 the terms of the GNU General Public License as published by the Free Software
00008 Foundation; version 2 of the License.
00009 
00010 This program is distributed in the hope that it will be useful, but WITHOUT
00011 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00012 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
00013 
00014 You should have received a copy of the GNU General Public License along with
00015 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
00016 St, Fifth Floor, Boston, MA 02110-1301 USA
00017 
00018 *****************************************************************************/
00019 
00020 /* this file is the internal functions that are used by xtrabackup.
00021    They probably shouldn't be called anywhere else.
00022  */
00023 
00024 #pragma once
00025 
00026 ulint
00027 recv_find_max_checkpoint(log_group_t**  max_group,
00028                          ulint*   max_field);
00029 
00030 ibool
00031 log_block_checksum_is_ok_or_old_format(const byte* block);
00032 
00033 ulint
00034 open_or_create_data_files(ibool* create_new_db,
00035 #ifdef UNIV_LOG_ARCHIVE
00036   ulint*    min_arch_log_no,
00038   ulint*    max_arch_log_no,
00040 #endif /* UNIV_LOG_ARCHIVE */
00041   ib_uint64_t*  min_flushed_lsn,
00043   ib_uint64_t*  max_flushed_lsn,
00045   ulint*    sum_of_new_sizes);
00048 ulint
00049 open_or_create_log_file(
00050 /*====================*/
00051   ibool create_new_db,    
00053   ibool*  log_file_created, 
00055   ibool log_file_has_been_opened,
00058   ulint k,      
00059   ulint i);     
00061 buf_block_t*
00062 btr_root_block_get(
00063 /*===============*/
00064   dict_index_t* index,  
00065   mtr_t*    mtr); 
00067 buf_block_t*
00068 btr_node_ptr_get_child(
00069 /*===================*/
00070   const rec_t*  node_ptr,
00071   dict_index_t* index,  
00072   const ulint*  offsets,
00073   mtr_t*    mtr); 
00075 ibool
00076 recv_check_cp_is_consistent(
00077 /*========================*/
00078                             const byte* buf); 
00080 int
00081 fil_file_readdir_next_file(
00082 /*=======================*/
00083   ulint*    err,  
00085   const char* dirname,
00086   os_file_dir_t dir,  
00087   os_file_stat_t* info);