fil0fil.h | fil0fil.h | |||
---|---|---|---|---|
/************************************************************************** *** | /************************************************************************** *** | |||
Copyright (c) 1995, 2012, Oracle and/or its affiliates. All Rights Reserved . | Copyright (c) 1995, 2013, Oracle and/or its affiliates. All Rights Reserved . | |||
This program is free software; you can redistribute it and/or modify it und er | This program is free software; you can redistribute it and/or modify it und er | |||
the terms of the GNU General Public License as published by the Free Softwa re | the terms of the GNU General Public License as published by the Free Softwa re | |||
Foundation; version 2 of the License. | Foundation; version 2 of the License. | |||
This program is distributed in the hope that it will be useful, but WITHOUT | This program is distributed in the hope that it will be useful, but WITHOUT | |||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNE SS | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNE SS | |||
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more detai ls. | FOR A PARTICULAR PURPOSE. See the GNU General Public License for more detai ls. | |||
You should have received a copy of the GNU General Public License along wit h | You should have received a copy of the GNU General Public License along wit h | |||
skipping to change at line 363 | skipping to change at line 363 | |||
header of the first page of each data file in the system tablespace. | header of the first page of each data file in the system tablespace. | |||
@return DB_SUCCESS or error number */ | @return DB_SUCCESS or error number */ | |||
UNIV_INTERN | UNIV_INTERN | |||
dberr_t | dberr_t | |||
fil_write_flushed_lsn_to_data_files( | fil_write_flushed_lsn_to_data_files( | |||
/*================================*/ | /*================================*/ | |||
lsn_t lsn, /*!< in: lsn to write */ | lsn_t lsn, /*!< in: lsn to write */ | |||
ulint arch_log_no); /*!< in: latest archived log file number */ | ulint arch_log_no); /*!< in: latest archived log file number */ | |||
/*******************************************************************//** | /*******************************************************************//** | |||
Reads the flushed lsn, arch no, and tablespace flag fields from a data | Reads the flushed lsn, arch no, and tablespace flag fields from a data | |||
file at database startup. */ | file at database startup. | |||
@retval NULL on success, or if innodb_force_recovery is set | ||||
@return pointer to an error message string */ | ||||
UNIV_INTERN | UNIV_INTERN | |||
void | const char* | |||
fil_read_first_page( | fil_read_first_page( | |||
/*================*/ | /*================*/ | |||
os_file_t data_file, /*!< in: open data file */ | os_file_t data_file, /*!< in: open data file */ | |||
ibool one_read_already, /*!< in: TRUE if min and max | ibool one_read_already, /*!< in: TRUE if min and max | |||
parameters below already | parameters below already | |||
contain sensible data */ | contain sensible data */ | |||
ulint* flags, /*!< out: tablespace flags * / | ulint* flags, /*!< out: tablespace flags * / | |||
ulint* space_id, /*!< out: tablespace ID */ | ulint* space_id, /*!< out: tablespace ID */ | |||
#ifdef UNIV_LOG_ARCHIVE | #ifdef UNIV_LOG_ARCHIVE | |||
ulint* min_arch_log_no, /*!< out: min of archived | ulint* min_arch_log_no, /*!< out: min of archived | |||
log numbers in data files */ | log numbers in data files */ | |||
ulint* max_arch_log_no, /*!< out: max of archived | ulint* max_arch_log_no, /*!< out: max of archived | |||
log numbers in data files */ | log numbers in data files */ | |||
#endif /* UNIV_LOG_ARCHIVE */ | #endif /* UNIV_LOG_ARCHIVE */ | |||
lsn_t* min_flushed_lsn, /*!< out: min of flushed | lsn_t* min_flushed_lsn, /*!< out: min of flushed | |||
lsn values in data files */ | lsn values in data files */ | |||
lsn_t* max_flushed_lsn); /*!< out: max of flushed | lsn_t* max_flushed_lsn) /*!< out: max of flushed | |||
lsn values in data files */ | lsn values in data files */ | |||
__attribute__((warn_unused_result)); | ||||
/*******************************************************************//** | /*******************************************************************//** | |||
Increments the count of pending operation, if space is not being deleted. | Increments the count of pending operation, if space is not being deleted. | |||
@return TRUE if being deleted, and operation should be skipped */ | @return TRUE if being deleted, and operation should be skipped */ | |||
UNIV_INTERN | UNIV_INTERN | |||
ibool | ibool | |||
fil_inc_pending_ops( | fil_inc_pending_ops( | |||
/*================*/ | /*================*/ | |||
ulint id); /*!< in: space id */ | ulint id); /*!< in: space id */ | |||
/*******************************************************************//** | /*******************************************************************//** | |||
Decrements the count of pending operations. */ | Decrements the count of pending operations. */ | |||
skipping to change at line 731 | skipping to change at line 734 | |||
/*===*/ | /*===*/ | |||
ulint type, /*!< in: OS_FILE_READ or OS_FILE_WRITE, | ulint type, /*!< in: OS_FILE_READ or OS_FILE_WRITE, | |||
ORed to OS_FILE_LOG, if a log i/o | ORed to OS_FILE_LOG, if a log i/o | |||
and ORed to OS_AIO_SIMULATED_WAKE_LATER | and ORed to OS_AIO_SIMULATED_WAKE_LATER | |||
if simulated aio and we want to post a | if simulated aio and we want to post a | |||
batch of i/os; NOTE that a simulated batch | batch of i/os; NOTE that a simulated batch | |||
may introduce hidden chances of deadlocks, | may introduce hidden chances of deadlocks, | |||
because i/os are not actually handled until | because i/os are not actually handled until | |||
all have been posted: use with great | all have been posted: use with great | |||
caution! */ | caution! */ | |||
ibool sync, /*!< in: TRUE if synchronous aio is desired */ | bool sync, /*!< in: true if synchronous aio is desired */ | |||
ulint space_id, /*!< in: space id */ | ulint space_id, /*!< in: space id */ | |||
ulint zip_size, /*!< in: compressed page size in bytes; | ulint zip_size, /*!< in: compressed page size in bytes; | |||
0 for uncompressed pages */ | 0 for uncompressed pages */ | |||
ulint block_offset, /*!< in: offset in number of blocks */ | ulint block_offset, /*!< in: offset in number of blocks */ | |||
ulint byte_offset, /*!< in: remainder of offset in bytes; in | ulint byte_offset, /*!< in: remainder of offset in bytes; in | |||
aio this must be divisible by the OS block | aio this must be divisible by the OS block | |||
size */ | size */ | |||
ulint len, /*!< in: how many bytes to read or write; th is | ulint len, /*!< in: how many bytes to read or write; th is | |||
must not cross a file boundary; in aio this | must not cross a file boundary; in aio this | |||
must be a block size multiple */ | must be a block size multiple */ | |||
End of changes. 6 change blocks. | ||||
5 lines changed or deleted | 8 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |