1/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation; version 2 of the License.
6
7This program is distributed in the hope that it will be useful,
8but WITHOUT ANY WARRANTY; without even the implied warranty of
9MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10GNU General Public License for more details.
11
12You should have received a copy of the GNU General Public License
13along with this program; if not, write to the Free Software
14Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15
16#ifndef _my_check_opt_h
17#define _my_check_opt_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 All given definitions needed for MyISAM storage engine:
25 myisamchk.c or/and ha_myisam.cc or/and micheck.c
26 Some definitions are needed by the MySQL parser.
27*/
28
29#define T_AUTO_INC (1UL << 0)
30#define T_AUTO_REPAIR (1UL << 1)
31#define T_BACKUP_DATA (1UL << 2)
32#define T_CALC_CHECKSUM (1UL << 3)
33#define T_CHECK (1UL << 4)
34#define T_CHECK_ONLY_CHANGED (1UL << 5)
35#define T_CREATE_MISSING_KEYS (1UL << 6)
36#define T_DESCRIPT (1UL << 7)
37#define T_DONT_CHECK_CHECKSUM (1UL << 8)
38#define T_EXTEND (1UL << 9)
39#define T_FAST (1UL << 10)
40#define T_FORCE_CREATE (1UL << 11)
41#define T_FORCE_UNIQUENESS (1UL << 12)
42#define T_INFO (1UL << 13)
43/** CHECK TABLE...MEDIUM (the default) */
44#define T_MEDIUM (1UL << 14)
45/** CHECK TABLE...QUICK */
46#define T_QUICK (1UL << 15)
47#define T_READONLY (1UL << 16)
48#define T_REP (1UL << 17)
49#define T_REP_BY_SORT (1UL << 18)
50#define T_REP_PARALLEL (1UL << 19)
51#define T_RETRY_WITHOUT_QUICK (1UL << 20)
52#define T_SAFE_REPAIR (1UL << 21)
53#define T_SILENT (1UL << 22)
54#define T_SORT_INDEX (1UL << 23)
55#define T_SORT_RECORDS (1UL << 24)
56#define T_STATISTICS (1UL << 25)
57#define T_UNPACK (1UL << 26)
58#define T_UPDATE_STATE (1UL << 27)
59#define T_VERBOSE (1UL << 28)
60#define T_VERY_SILENT (1UL << 29)
61#define T_WAIT_FOREVER (1UL << 30)
62#define T_WRITE_LOOP (1UL << 31)
63#define T_ZEROFILL (1ULL << 32)
64#define T_ZEROFILL_KEEP_LSN (1ULL << 33)
65/** If repair should not bump create_rename_lsn */
66#define T_NO_CREATE_RENAME_LSN (1ULL << 34)
67/** If repair shouldn't do any locks */
68#define T_NO_LOCKS (1ULL << 35)
69#define T_CREATE_UNIQUE_BY_SORT (1ULL << 36)
70#define T_SUPPRESS_ERR_HANDLING (1ULL << 37)
71#define T_FORCE_SORT_MEMORY (1ULL << 38)
72
73#define T_REP_ANY (T_REP | T_REP_BY_SORT | T_REP_PARALLEL)
74
75#ifdef __cplusplus
76}
77#endif
78#endif
79