1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-16980 Wrongly set tablename len while opening the

table for purge thread

Problem:
=======
	Purge tries to fetch mdl lock for the whole table even though it tries
to open one of the partition. But table name length was wrongly set to indicate
the partition name too.

Solution:
========
- Table name length should identify the table name only not the partition name.
This commit is contained in:
Thirunarayanan Balathandayuthapani
2018-10-08 21:40:18 +05:30
parent 1ebe841fb8
commit e9d9ca8c44
4 changed files with 40 additions and 0 deletions

View File

@@ -1765,6 +1765,8 @@ struct TABLE_LIST
mdl_type= MDL_SHARED_READ;
bzero((char*) this, sizeof(*this));
DBUG_ASSERT(!db_name_arg || strlen(db_name_arg) == db_length_arg);
DBUG_ASSERT(!table_name_arg || strlen(table_name_arg) == table_name_length_arg);
db= (char*) db_name_arg;
db_length= db_length_arg;
table_name= (char*) table_name_arg;