~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/myisamchk.c

  • Committer: Stewart Smith
  • Date: 2008-07-09 01:40:54 UTC
  • mfrom: (105 drizzle)
  • mto: This revision was merged to the branch mainline in revision 111.
  • Revision ID: stewart@flamingspork.com-20080709014054-xfgfzirbhqzrzkkj
mergeĀ fromĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Describe, check and repair of MyISAM tables */
17
17
 
18
 
#include "fulltext.h"
 
18
#include <my_global.h>
19
19
 
20
20
#include <m_ctype.h>
21
21
#include <stdarg.h>
22
22
#include <my_getopt.h>
23
23
#include <my_bit.h>
 
24
#include <myisam.h>
 
25
#include <m_string.h>
24
26
#ifdef HAVE_SYS_VADVICE_H
25
27
#include <sys/vadvise.h>
26
28
#endif
29
31
#endif
30
32
SET_STACK_SIZE(9000)                    /* Minimum stack size for program */
31
33
 
32
 
#ifndef USE_RAID
33
34
#define my_raid_create(A,B,C,D,E,F,G) my_create(A,B,C,G)
34
35
#define my_raid_delete(A,B,C) my_delete(A,B)
35
 
#endif
 
36
 
 
37
#include "myisamdef.h"
36
38
 
37
39
static uint decode_bits;
38
40
static char **default_argv;
42
44
static long opt_myisam_block_size;
43
45
static long opt_key_cache_block_size;
44
46
static const char *my_progname_short;
45
 
static int stopwords_inited= 0;
46
47
static MY_TMPDIR myisamchk_tmpdir;
47
48
 
48
49
static const char *type_names[]=
133
134
  }
134
135
  free_defaults(default_argv);
135
136
  free_tmpdir(&myisamchk_tmpdir);
136
 
  ft_free_stopwords();
137
137
  my_end(check_param.testflag & T_INFO ? MY_CHECK_ERROR | MY_GIVE_INFO : MY_CHECK_ERROR);
138
138
  exit(error);
139
139
#ifndef _lint
319
319
    BUFFERS_WHEN_SORTING, 4L, 100L, 0L, 1L, 0},
320
320
  { "decode_bits", OPT_DECODE_BITS, "", (uchar**) &decode_bits,
321
321
    (uchar**) &decode_bits, 0, GET_UINT, REQUIRED_ARG, 9L, 4L, 17L, 0L, 1L, 0},
322
 
  { "ft_min_word_len", OPT_FT_MIN_WORD_LEN, "", (uchar**) &ft_min_word_len,
323
 
    (uchar**) &ft_min_word_len, 0, GET_ULONG, REQUIRED_ARG, 4, 1, HA_FT_MAXCHARLEN,
324
 
    0, 1, 0},
325
 
  { "ft_max_word_len", OPT_FT_MAX_WORD_LEN, "", (uchar**) &ft_max_word_len,
326
 
    (uchar**) &ft_max_word_len, 0, GET_ULONG, REQUIRED_ARG, HA_FT_MAXCHARLEN, 10,
327
 
    HA_FT_MAXCHARLEN, 0, 1, 0},
328
 
  { "ft_stopword_file", OPT_FT_STOPWORD_FILE,
329
 
    "Use stopwords from this file instead of built-in list.",
330
 
    (uchar**) &ft_stopword_file, (uchar**) &ft_stopword_file, 0, GET_STR,
331
 
    REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
332
322
  {"stats_method", OPT_STATS_METHOD,
333
323
   "Specifies how index statistics collection code should treat NULLs. "
334
324
   "Possible values of name are \"nulls_unequal\" (default behavior for 4.1/5.0), "
953
943
  }
954
944
  else
955
945
  {
956
 
    if (!stopwords_inited++)
957
 
      ft_init_stopwords();
958
946
 
959
947
    if (!(param->testflag & T_READONLY))
960
948
      lock_type = F_WRLCK;                      /* table is changed */
1792
1780
  DBUG_VOID_RETURN;
1793
1781
}
1794
1782
 
1795
 
#include "mi_extrafunc.h"