| 1 | /* Copyright (C) 2006,2007,2008 MySQL AB |
| 2 | |
| 3 | This program is free software; you can redistribute it and/or modify |
| 4 | it under the terms of the GNU General Public License as published by |
| 5 | the Free Software Foundation; version 2 of the License. |
| 6 | |
| 7 | This program is distributed in the hope that it will be useful, |
| 8 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | GNU General Public License for more details. |
| 11 | |
| 12 | You should have received a copy of the GNU General Public License |
| 13 | along with this program; if not, write to the Free Software |
| 14 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA */ |
| 15 | |
| 16 | struct st_dirty_page /* used only in the REDO phase */ |
| 17 | { |
| 18 | uint64 file_and_page_id; |
| 19 | LSN rec_lsn; |
| 20 | }; |
| 21 | extern HASH all_dirty_pages; |
| 22 | /* |
| 23 | LSN after which dirty pages list does not apply. Can be slightly before |
| 24 | when ma_checkpoint_execute() started. |
| 25 | */ |
| 26 | extern LSN checkpoint_start; |
| 27 | extern my_bool procent_printed; |
| 28 | extern FILE *tracef; |
| 29 | |
| 30 | |
| 31 | my_bool _ma_redo_not_needed_for_page(uint16 shortid, LSN lsn, |
| 32 | pgcache_page_no_t page, |
| 33 | my_bool index); |
| 34 | void tprint(FILE *trace_file, const char *format, ...) |
| 35 | ATTRIBUTE_FORMAT(printf, 2, 3); |
| 36 | void eprint(FILE *trace_file, const char *format, ...) |
| 37 | ATTRIBUTE_FORMAT(printf, 2, 3); |
| 38 | |