Skip to content

Commit 1488de6

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
1 parent 6f2e228 commit 1488de6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage/innobase/dict/dict0dict.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,10 @@ bool dict_table_t::parse_name(char (&db_name)[NAME_LEN + 1],
763763
return false;
764764

765765
if (char* is_part= strchr(tbl_buf, '#'))
766+
{
766767
*is_part = '\0';
768+
*tbl_name_len= is_part - tbl_buf;
769+
}
767770

768771
filename_to_tablename(tbl_buf, tbl_name, MAX_TABLE_NAME_LEN + 1, true);
769772
return true;

0 commit comments

Comments
 (0)