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
16struct st_dirty_page /* used only in the REDO phase */
17{
18 uint64 file_and_page_id;
19 LSN rec_lsn;
20};
21extern 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*/
26extern LSN checkpoint_start;
27extern my_bool procent_printed;
28extern FILE *tracef;
29
30
31my_bool _ma_redo_not_needed_for_page(uint16 shortid, LSN lsn,
32 pgcache_page_no_t page,
33 my_bool index);
34void tprint(FILE *trace_file, const char *format, ...)
35 ATTRIBUTE_FORMAT(printf, 2, 3);
36void eprint(FILE *trace_file, const char *format, ...)
37 ATTRIBUTE_FORMAT(printf, 2, 3);
38