summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-12-23 15:59:56 +0100
committerSergei Golubchik <serg@mariadb.org>2015-12-23 15:59:56 +0100
commit923b6dc888d727272a66290f60bc61ab76f1fff1 (patch)
tree41f14d1131189b0ac730d8279a8f751b54017048
parent8d9fbaaba60d1e044de0856201cc6989b380e2b0 (diff)
downloadmariadb-git-923b6dc888d727272a66290f60bc61ab76f1fff1.tar.gz
remove HA_ERR_INFO, use ER_ALTER_INFO
-rw-r--r--include/my_base.h3
-rw-r--r--include/my_handler_errors.h3
-rw-r--r--storage/myisam/mi_check.c3
3 files changed, 4 insertions, 5 deletions
diff --git a/include/my_base.h b/include/my_base.h
index bdcf465b35c..8b546edac43 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -503,8 +503,7 @@ enum ha_base_keytype {
#define HA_ERR_FTS_TOO_MANY_WORDS_IN_PHRASE 191 /* Too many words in a phrase */
#define HA_ERR_DECRYPTION_FAILED 192 /* Table encrypted but
decypt failed */
-#define HA_ERR_INFO 193 /* Information, not critical */
-#define HA_ERR_LAST 193 /* Copy of last error nr */
+#define HA_ERR_LAST 192 /* Copy of last error nr */
/* Number of different errors */
#define HA_ERR_ERRORS (HA_ERR_LAST - HA_ERR_FIRST + 1)
diff --git a/include/my_handler_errors.h b/include/my_handler_errors.h
index 38b2bf98d6e..5af6a359348 100644
--- a/include/my_handler_errors.h
+++ b/include/my_handler_errors.h
@@ -95,8 +95,7 @@ static const char *handler_error_messages[]=
"Disk full",
"Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this",
"Too many words in a FTS phrase or proximity search",
- "Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match.",
- "Information, not an error"
+ "Table encrypted but decryption failed. This could be because correct encryption management plugin is not loaded, used encryption key is not available or encryption method does not match."
};
#endif /* MYSYS_MY_HANDLER_ERRORS_INCLUDED */
diff --git a/storage/myisam/mi_check.c b/storage/myisam/mi_check.c
index 1ef3a4e72b9..bab0ad2b6a4 100644
--- a/storage/myisam/mi_check.c
+++ b/storage/myisam/mi_check.c
@@ -51,6 +51,7 @@
#include <sys/mman.h>
#endif
#include "rt_index.h"
+#include <mysqld_error.h>
/* Functions defined in this file */
@@ -4767,7 +4768,7 @@ static int replace_data_file(HA_CHECK *param, MI_INFO *info,
{
char buff[MY_BACKUP_NAME_EXTRA_LENGTH+1];
my_create_backup_name(buff, "", param->backup_time);
- my_printf_error(HA_ERR_INFO, /* No error, just info */
+ my_printf_error(ER_GET_ERRMSG,
"Making backup of data file %s with extension '%s'",
MYF(ME_JUST_INFO | ME_NOREFRESH), share->data_file_name,
buff);