mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Added option --read-only (Thanks to Markus Benning)
myisam/myisamchk.c: Removed warning from fulltext when repairing many tables with fulltext index sql/init.cc: Remove not used variables sql/mysql_priv.h: Remove not used variables sql/mysqld.cc: Removed not used variables Added option --read-only Change opt_do_pstack and master_ssl to get them to work with my_getopt sql/set_var.cc: Option --read-only sql/sql_parse.cc: Option --read-only
This commit is contained in:
parent
43d3714095
commit
18dd37b8a1
6 changed files with 29 additions and 9 deletions
|
|
@ -45,6 +45,7 @@ static const char *set_charset_name;
|
|||
static CHARSET_INFO *set_charset;
|
||||
static long opt_myisam_block_size;
|
||||
static const char *my_progname_short;
|
||||
static int stopwords_inited= 0;
|
||||
|
||||
static const char *type_names[]=
|
||||
{ "?","char","binary", "short", "long", "float",
|
||||
|
|
@ -861,7 +862,7 @@ static int myisamchk(MI_CHECK *param, my_string filename)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (share->fulltext_index)
|
||||
if (share->fulltext_index && !stopwords_inited++)
|
||||
ft_init_stopwords();
|
||||
|
||||
if (!(param->testflag & T_READONLY))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue