my_check_opt.h 2.6 KB

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