Commit 02f33193 authored by unknown's avatar unknown

Merging fixed

parent 3ba08508
...@@ -112,20 +112,14 @@ static int search_files(const char *conf_file, int *argc, char ***argv, ...@@ -112,20 +112,14 @@ static int search_files(const char *conf_file, int *argc, char ***argv,
DBUG_ENTER("search_files"); DBUG_ENTER("search_files");
/* Check if we want to force the use a specific default file */ /* Check if we want to force the use a specific default file */
forced_default_file= 0; get_defaults_files(*argc, *argv,
if (*argc >= 2) (char **)&forced_default_file, &defaults_extra_file);
{ if (forced_default_file)
if (is_prefix(argv[0][1],"--defaults-file=")) forced_default_file= strchr(forced_default_file,'=')+1;
{ if (defaults_extra_file)
forced_default_file= strchr(argv[0][1],'=') + 1; defaults_extra_file= strchr(defaults_extra_file,'=')+1;
(*args_used)++;
} args_used+= (forced_default_file ? 1 : 0) + (defaults_extra_file ? 1 : 0);
else if (is_prefix(argv[0][1],"--defaults-extra-file="))
{
defaults_extra_file= strchr(argv[0][1],'=') + 1;
(*args_used)++;
}
}
if (forced_default_file) if (forced_default_file)
{ {
...@@ -355,15 +349,6 @@ int load_defaults(const char *conf_file, const char **groups, ...@@ -355,15 +349,6 @@ int load_defaults(const char *conf_file, const char **groups,
DBUG_RETURN(0); DBUG_RETURN(0);
} }
get_defaults_files(*argc, *argv,
(char **)&forced_default_file, &defaults_extra_file);
if (forced_default_file)
forced_default_file= strchr(forced_default_file,'=')+1;
if (defaults_extra_file)
defaults_extra_file= strchr(defaults_extra_file,'=')+1;
args_used+= (forced_default_file ? 1 : 0) + (defaults_extra_file ? 1 : 0);
group.count=0; group.count=0;
group.name= "defaults"; group.name= "defaults";
group.type_names= groups; group.type_names= groups;
......
...@@ -2644,7 +2644,6 @@ int setup_wild(THD *thd, TABLE_LIST *tables, List<Item> &fields, ...@@ -2644,7 +2644,6 @@ int setup_wild(THD *thd, TABLE_LIST *tables, List<Item> &fields,
List<Item> *sum_func_list, List<Item> *sum_func_list,
uint wild_num) uint wild_num)
{ {
DBUG_ENTER("setup_wild");
if (!wild_num) if (!wild_num)
return(0); return(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment