Skip to content

Commit 901ce53

Browse files
Bug #20144839 AFTER UPDATING TO MYSQL 5.6.22 SERVER
CRASHES ON EVERY START ATTEMPT Description: ------------ push_warning_printf function is used to print the warning message to the client. So this function should not invoke while recovering the server. Moreover current_thd is NULL while starting the server. Solution: --------- - Avoiding the warning to be printed while recovery. This patch already pushed in mysql-5.6.
1 parent e7391e4 commit 901ce53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12102,6 +12102,10 @@ ib_warn_row_too_big(const dict_table_t* table)
1210212102

1210312103
THD* thd = current_thd;
1210412104

12105+
if (thd == NULL) {
12106+
return;
12107+
}
12108+
1210512109
push_warning_printf(
1210612110
thd, MYSQL_ERROR::WARN_LEVEL_WARN, HA_ERR_TO_BIG_ROW,
1210712111
"Row size too large (> %lu). Changing some columns to TEXT"

0 commit comments

Comments
 (0)