mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
branches/5.1:
In ha_innobase::info(): Replace sql_print_warning() which prints to mysqld error log with push_warning_printf() which sends the error message to the client. Suggested by: Marko, Sunny, Michael Objected by: Inaam
This commit is contained in:
parent
2c754dd6f7
commit
097eadc6d5
1 changed files with 15 additions and 6 deletions
|
@ -5952,12 +5952,21 @@ ha_innobase::info(
|
|||
ib_table->space) * 1024;
|
||||
} else {
|
||||
|
||||
sql_print_warning(
|
||||
"Trying to get the free space for "
|
||||
"table %s but its tablespace has "
|
||||
"been discarded or the .ibd file "
|
||||
"is missing. Setting the free space "
|
||||
"to zero.", ib_table->name);
|
||||
THD* thd;
|
||||
|
||||
thd = ha_thd();
|
||||
|
||||
push_warning_printf(
|
||||
thd,
|
||||
MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||
ER_CANT_GET_STAT,
|
||||
"InnoDB: Trying to get the free "
|
||||
"space for table %s but its "
|
||||
"tablespace has been discarded or "
|
||||
"the .ibd file is missing. Setting "
|
||||
"the free space to zero.",
|
||||
ib_table->name);
|
||||
|
||||
stats.delete_length = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue