summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2018-10-08 21:40:18 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2018-10-08 21:40:18 +0530
commite9d9ca8c44c96e5943c0175177b3377a65b2d76f (patch)
treecaa582fdbc583ffd67625087b7534cee8aa5a032 /sql/table.h
parent1ebe841fb85725c2a6aaecb3bca41ec098a5193d (diff)
downloadmariadb-git-e9d9ca8c44c96e5943c0175177b3377a65b2d76f.tar.gz
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.
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index fc3102fc9a5..33b921cd946 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -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;