Skip to content
Permalink
Browse files
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
  • Loading branch information
Thirunarayanan committed Jan 7, 2020
1 parent 6f2e228 commit 1488de6
Showing 1 changed file with 3 additions and 0 deletions.
@@ -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;

0 comments on commit 1488de6

Please sign in to comment.