summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@sun.com>2008-10-08 09:46:30 +0200
committerMattias Jonsson <mattias.jonsson@sun.com>2008-10-08 09:46:30 +0200
commit9e71cd43f05960f706c64fbbf754ca3773e457ec (patch)
tree69873ba93e265b4cead07f60d517ad8df14cd03f /sql/handler.h
parent39996b44cce1cb40fe3ae0634c735626c3a103e0 (diff)
downloadmariadb-git-9e71cd43f05960f706c64fbbf754ca3773e457ec.tar.gz
Bug#37453: Dropping/creating index on partitioned table with
InnoDB Plugin locks table This is a pre fix update that does the change to the handler api. This is done since there are already changes in this version, so the real fix does not need to change the api. sql/handler.h: Bug#37453: Dropping/creating index on partitioned table with InnoDB Plugin locks table The check for which alter table flags a handler have is done through the handlerton, which will not work correctly for any partitioned table. It must be through the handler interface. To be able to fix this I have to add a virtual function to the handler class.
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h
index b943e188962..4ac80014cde 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -1732,6 +1732,12 @@ public:
but we don't have a primary key
*/
virtual void use_hidden_primary_key();
+ virtual uint alter_table_flags(uint flags)
+ {
+ if (ht->alter_table_flags)
+ return ht->alter_table_flags(flags);
+ return 0;
+ }
protected:
/* Service methods for use by storage engines. */