From 933c3a5e5b22d1297d68839968fa7a103a144b08 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 27 Mar 2014 12:17:53 +0100 Subject: [PATCH] compilation failure on windows --- storage/archive/ha_archive.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/storage/archive/ha_archive.cc b/storage/archive/ha_archive.cc index fe6b611d1c6..3625df73c4f 100644 --- a/storage/archive/ha_archive.cc +++ b/storage/archive/ha_archive.cc @@ -781,12 +781,8 @@ int ha_archive::create(const char *name, TABLE *table_arg, #endif /* HAVE_READLINK */ { if (create_info->data_file_name) - { - push_warning_printf(table_arg->in_use, Sql_condition::WARN_LEVEL_WARN, - WARN_OPTION_IGNORED, - ER_DEFAULT(WARN_OPTION_IGNORED), - "DATA DIRECTORY"); - } + my_error(WARN_OPTION_IGNORED, MYF(ME_JUST_WARNING), "DATA DIRECTORY"); + fn_format(name_buff, name, "", ARZ, MY_REPLACE_EXT | MY_UNPACK_FILENAME); linkname[0]= 0; @@ -794,12 +790,7 @@ int ha_archive::create(const char *name, TABLE *table_arg, /* Archive engine never uses INDEX DIRECTORY. */ if (create_info->index_file_name) - { - push_warning_printf(table_arg->in_use, Sql_condition::WARN_LEVEL_WARN, - WARN_OPTION_IGNORED, - ER_DEFAULT(WARN_OPTION_IGNORED), - "INDEX DIRECTORY"); - } + my_error(WARN_OPTION_IGNORED, MYF(ME_JUST_WARNING), "INDEX DIRECTORY"); /* There is a chance that the file was "discovered". In this case