Skip to content

Commit fa74c1a

Browse files
committed
Non partitioned table could be marked as partitioned in ddl.log
partion_engine_name was not reset when looping over tables in mysql_rm_table_no_locks. This could cause maria_backup to think that at normal droped table was partitioned. This issue was discovered in 11.8 as part of atomic created and replace and only the fix was backported.
1 parent c05e7c4 commit fa74c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_table.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,6 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables,
11761176
char path[FN_REFLEN + 1];
11771177
LEX_CSTRING alias= null_clex_str;
11781178
LEX_CUSTRING version;
1179-
LEX_CSTRING partition_engine_name= {NULL, 0};
11801179
StringBuffer<160> unknown_tables(system_charset_info);
11811180
DDL_LOG_STATE local_ddl_log_state;
11821181
const char *comment_start;
@@ -1263,6 +1262,7 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables,
12631262
const LEX_CSTRING db= table->db;
12641263
const LEX_CSTRING table_name= table->table_name;
12651264
LEX_CSTRING cpath= {0,0};
1265+
LEX_CSTRING partition_engine_name= {NULL, 0};
12661266
handlerton *hton= 0;
12671267
Table_type table_type;
12681268
size_t path_length= 0;

0 commit comments

Comments
 (0)