Skip to content

Commit b74eb5a

Browse files
committed
row_drop_table_for_mysql(): Correct a parameter to innobase_format_name()
This fixes a regression that was introduced in MySQL 5.6.6 in an error handling code path, in the following change: commit 024f363d6b5f09b20d1bba411af55be95c7398d3 Author: kevin.lewis@oracle.com <> Date: Fri Jun 15 09:01:42 2012 -0500 Bug #14169459 INNODB; DROP TABLE DOES NOT DELETE THE IBD FILE FOR A TEMPORARY TABLE.
1 parent 8634f7e commit b74eb5a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

storage/innobase/row/row0mysql.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4323,7 +4323,8 @@ row_drop_table_for_mysql(
43234323
char msg_tablename[MAX_FULL_NAME_LEN + 1];
43244324

43254325
innobase_format_name(
4326-
msg_tablename, sizeof(tablename),
4326+
msg_tablename,
4327+
sizeof msg_tablename,
43274328
tablename, FALSE);
43284329

43294330
ib_logf(IB_LOG_LEVEL_INFO,

storage/xtradb/row/row0mysql.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4347,7 +4347,8 @@ row_drop_table_for_mysql(
43474347
char msg_tablename[MAX_FULL_NAME_LEN + 1];
43484348

43494349
innobase_format_name(
4350-
msg_tablename, sizeof(tablename),
4350+
msg_tablename,
4351+
sizeof msg_tablename,
43514352
tablename, FALSE);
43524353

43534354
ib_logf(IB_LOG_LEVEL_INFO,

0 commit comments

Comments
 (0)