summaryrefslogtreecommitdiff
path: root/storage/innobase/handler/ha_innodb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/handler/ha_innodb.cc')
-rw-r--r--storage/innobase/handler/ha_innodb.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index 9976537be0a..4036d20dce4 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -21032,7 +21032,6 @@ ib_senderrf(
...) /*!< Args */
{
va_list args;
- char* str = NULL;
const char* format = my_get_err_msg(code);
/* If the caller wants to push a message to the client then
@@ -21045,7 +21044,7 @@ ib_senderrf(
va_start(args, code);
- myf l = Sql_condition::WARN_LEVEL_NOTE;
+ myf l;
switch (level) {
case IB_LOG_LEVEL_INFO:
@@ -21054,14 +21053,6 @@ ib_senderrf(
case IB_LOG_LEVEL_WARN:
l = ME_JUST_WARNING;
break;
- case IB_LOG_LEVEL_ERROR:
- sd_notifyf(0, "STATUS=InnoDB: Error: %s", str);
- l = 0;
- break;
- case IB_LOG_LEVEL_FATAL:
- l = 0;
- sd_notifyf(0, "STATUS=InnoDB: Fatal: %s", str);
- break;
default:
l = 0;
break;
@@ -21070,7 +21061,6 @@ ib_senderrf(
my_printv_error(code, format, MYF(l), args);
va_end(args);
- free(str);
if (level == IB_LOG_LEVEL_FATAL) {
ut_error;