diff options
author | unknown <holyfoot/hf@mysql.com/hfmain.(none)> | 2007-06-01 19:44:09 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@mysql.com/hfmain.(none)> | 2007-06-01 19:44:09 +0500 |
commit | e42439af33698293a26f18dcf50a275ad19d76c8 (patch) | |
tree | f31d196dbd90039c113adfdcfc9a40df3307e6c1 /sql/table.h | |
parent | 2d6544b496574151acad7fa3e1b81ae387d3e5c2 (diff) | |
download | mariadb-git-e42439af33698293a26f18dcf50a275ad19d76c8.tar.gz |
Bug #28477 innodb assertion and crash during alter table to add/drop partition.
The bug was repeated on MyISAM tables, so isn't InnoDB specific.
Reason of the bug is that partition-related members of TABLE_SHARE
wasn't properly updated after ALTER command. So if other thread doesn't
reread frm file, and just uses cached SHARE, it uses wrong data
sql/sql_table.cc:
Bug #28477 innodb assertion and crash during alter table to add/drop partition.
keep share members updated after table modification
sql/table.cc:
Bug #28477 innodb assertion and crash during alter table to add/drop partition.
share->partition_info_buffer_size initialization added
sql/table.h:
Bug #28477 innodb assertion and crash during alter table to add/drop partition.
partition_info_buffer_size declared in st_table_share to store
the size of the memory available for partition_info
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index 99fbf57bb52..6aa9eb8e3c6 100644 --- a/sql/table.h +++ b/sql/table.h @@ -243,6 +243,7 @@ typedef struct st_table_share bool auto_partitioned; const char *partition_info; uint partition_info_len; + uint partition_info_buffer_size; const char *part_state; uint part_state_len; handlerton *default_part_db_type; |