summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@sun.com>2008-10-05 00:40:30 +0200
committerMattias Jonsson <mattias.jonsson@sun.com>2008-10-05 00:40:30 +0200
commit8f64bf94adef5d65e670c342cda81156137bdcaf (patch)
tree58fe630451cffab8aa988a08d9f7c6764fdc0f6a /sql/handler.h
parent4223fa0e1e3056b4d5a980c6e385af9efdd2b70e (diff)
downloadmariadb-git-8f64bf94adef5d65e670c342cda81156137bdcaf.tar.gz
Bug#37453: Dropping/creating index on partitioned table with
InnoDB Plugin locks table The fast/on-line add/drop index handler calls was not implemented whithin the partitioning. This implements it in the partitioning handler. Since this is only used by the not included InnoDB plugin, there is no test case. (Have tested it manually with the plugin, and it does not allow unique indexes not including partitioning function, or removal of pk, which in innodb generates a new pk, which is not in the partitioning function.) NOTE: This introduces a new handler method, and because of that changes the storage engine api. (One cannot use a handlerton to see the capabilities of a table's handler if it is partitioned. So I added a wrapper function in the handler that defaults to the handlerton function, which the partitioning handler overrides.
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 df6157f80b4..bea2952f4c1 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -1724,6 +1724,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. */