Class which handles the partition of states PART_TO_BE_DROPPED, PART_TO_BE_REORGED and PART_REORGED_DROPPED.
More...
|
| alter_part_drop (uint part_id, partition_state state, const char *table_name, trx_t *trx, dict_table_t **old, bool conflict) |
| Constructor. More...
|
|
| ~alter_part_drop () override=default |
| Destructor. More...
|
|
int | try_commit (const TABLE *table, TABLE *altered_table, const dd::Partition *old_part, dd::Partition *new_part) override |
| Try to commit. More...
|
|
virtual | ~alter_part ()=default |
| Virtual destructor. More...
|
|
virtual uint | part_id () const |
| Return the partition id. More...
|
|
virtual partition_state | state () const |
| Return the partition state. More...
|
|
dict_table_t * | new_table () |
| Get the InnoDB table object for newly created partition if applicable. More...
|
|
void | free_old_part (bool check_in_cache, const char *part_name) |
| Set the freed old partition to nullptr to avoid dangling pointer. More...
|
|
virtual int | prepare (TABLE *altered_table, const dd::Partition *old_part, dd::Partition *new_part) |
| Prepare. More...
|
|
virtual void | rollback () |
| Rollback. More...
|
|
|
| alter_part (trx_t *trx, uint part_id, partition_state state, const char *table_name, dict_table_t **old) |
| Constructor. More...
|
|
bool | build_partition_name (const dd::Partition *dd_part, bool temp, char *name) |
| Build the partition name for specified partition. More...
|
|
int | create (const dd::Table *part_table, const char *part_name, dd::Partition *dd_part, TABLE *table, const char *tablespace, bool file_per_table, uint64_t autoinc, uint64_t autoextend_size) |
| Create a new partition. More...
|
|
trx_t *const | m_trx |
| InnoDB transaction, nullptr if not used. More...
|
|
uint | m_part_id |
| Partition id in the table. More...
|
|
partition_state | m_state |
| Partition state of the partition on which this class will do operations. More...
|
|
const char * | m_table_name |
| Partitioned table name, in form of . More...
|
|
dict_table_t ** | m_old |
| The InnoDB table object for old partition. More...
|
|
dict_table_t * | m_new |
| The InnoDB table object for newly created partition. More...
|
|
Class which handles the partition of states PART_TO_BE_DROPPED, PART_TO_BE_REORGED and PART_REORGED_DROPPED.
See comments for alter_part_factory::create_for_reorg and alter_part_factory::create_for_non_reorg.