diff options
author | tomas@poseidon.ndb.mysql.com <> | 2006-02-28 12:29:50 +0100 |
---|---|---|
committer | tomas@poseidon.ndb.mysql.com <> | 2006-02-28 12:29:50 +0100 |
commit | 81479bde6a50dc1338287e04773e553ed92e1bf6 (patch) | |
tree | 0fd13d4cb054a8992dc91c27ebc1259edf93f865 /sql/sql_partition.h | |
parent | fecfbb483456c28c6cced2f1a6a81c07e90acdc5 (diff) | |
download | mariadb-git-81479bde6a50dc1338287e04773e553ed92e1bf6.tar.gz |
Bug #17701, ALTER TABLE t1 ADD PARTITION for PARTITION BY LIST hangs test
- code wrongly tries to do a "fast alter partition", although not supported
Diffstat (limited to 'sql/sql_partition.h')
-rw-r--r-- | sql/sql_partition.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/sql/sql_partition.h b/sql/sql_partition.h index 3cb7d9c2d0f..4982b1fcf1f 100644 --- a/sql/sql_partition.h +++ b/sql/sql_partition.h @@ -24,35 +24,6 @@ #define HA_CAN_PARTITION_UNIQUE (1 << 2) #define HA_USE_AUTO_PARTITION (1 << 3) -/* - HA_PARTITION_FUNCTION_SUPPORTED indicates that the function is - supported at all. - HA_FAST_CHANGE_PARTITION means that optimised variants of the changes - exists but they are not necessarily done online. - - HA_ONLINE_DOUBLE_WRITE means that the handler supports writing to both - the new partition and to the old partitions when updating through the - old partitioning schema while performing a change of the partitioning. - This means that we can support updating of the table while performing - the copy phase of the change. For no lock at all also a double write - from new to old must exist and this is not required when this flag is - set. - This is actually removed even before it was introduced the first time. - The new idea is that handlers will handle the lock level already in - store_lock for ALTER TABLE partitions. - - HA_PARTITION_ONE_PHASE is a flag that can be set by handlers that take - care of changing the partitions online and in one phase. Thus all phases - needed to handle the change are implemented inside the storage engine. - The storage engine must also support auto-discovery since the frm file - is changed as part of the change and this change must be controlled by - the storage engine. A typical engine to support this is NDB (through - WL #2498). -*/ -#define HA_PARTITION_FUNCTION_SUPPORTED (1L << 12) -#define HA_FAST_CHANGE_PARTITION (1L << 13) -#define HA_PARTITION_ONE_PHASE (1L << 14) - /*typedef struct { ulonglong data_file_length; ulonglong max_data_file_length; |