220
220
#define TRANS_ALLOC_BLOCK_SIZE 4096
221
221
#define TRANS_ALLOC_PREALLOC_SIZE 4096
222
222
#define RANGE_ALLOC_BLOCK_SIZE 4096
223
#define ACL_ALLOC_BLOCK_SIZE 1024
224
223
#define UDF_ALLOC_BLOCK_SIZE 1024
225
224
#define TABLE_ALLOC_BLOCK_SIZE 1024
226
#define BDB_LOG_ALLOC_BLOCK_SIZE 1024
227
225
#define WARN_ALLOC_BLOCK_SIZE 2048
228
226
#define WARN_ALLOC_PREALLOC_SIZE 1024
229
227
#define PROFILE_ALLOC_BLOCK_SIZE 2048
654
652
#define HA_KEY_SCAN_NOT_ROR 128
655
653
#define HA_DO_INDEX_COND_PUSHDOWN 256 /* Supports Index Condition Pushdown */
660
HA_PARTITION_FUNCTION_SUPPORTED indicates that the function is
662
HA_FAST_CHANGE_PARTITION means that optimised variants of the changes
663
exists but they are not necessarily done online.
665
HA_ONLINE_DOUBLE_WRITE means that the handler supports writing to both
666
the new partition and to the old partitions when updating through the
667
old partitioning schema while performing a change of the partitioning.
668
This means that we can support updating of the table while performing
669
the copy phase of the change. For no lock at all also a double write
670
from new to old must exist and this is not required when this flag is
672
This is actually removed even before it was introduced the first time.
673
The new idea is that handlers will handle the lock level already in
674
store_lock for ALTER Table partitions.
676
HA_PARTITION_ONE_PHASE is a flag that can be set by handlers that take
677
care of changing the partitions online and in one phase. Thus all phases
678
needed to handle the change are implemented inside the storage engine.
679
The storage engine must also support auto-discovery since the frm file
680
is changed as part of the change and this change must be controlled by
681
the storage engine. A typical engine to support this is NDB (through
684
#define HA_PARTITION_FUNCTION_SUPPORTED (1L << 1)
685
#define HA_FAST_CHANGE_PARTITION (1L << 2)
686
#define HA_PARTITION_ONE_PHASE (1L << 3)
688
655
/* operations for disable/enable indexes */
689
656
#define HA_KEY_SWITCH_NONUNIQ 0
690
657
#define HA_KEY_SWITCH_ALL 1