MDEV-21344 Valgrind uninitialised value warnings in dict_acquire_mdl_shared

- For partition table, tbl_name_len is calculated wrongly. So it leads to
this uninitialised value warnings
parent 6f2e2285
......@@ -763,7 +763,10 @@ bool dict_table_t::parse_name(char (&db_name)[NAME_LEN + 1],
return false;
if (char* is_part= strchr(tbl_buf, '#'))
{
*is_part = '\0';
*tbl_name_len= is_part - tbl_buf;
}
filename_to_tablename(tbl_buf, tbl_name, MAX_TABLE_NAME_LEN + 1, true);
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment