mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
refs #26 fix inplace_alter_table for tokudb partitions
This commit is contained in:
parent
3ee790ffe4
commit
4a76b76014
1 changed files with 8 additions and 0 deletions
|
@ -667,6 +667,14 @@ bool ha_tokudb::commit_inplace_alter_table(TABLE *altered_table, Alter_inplace_i
|
|||
bool result = false; // success
|
||||
|
||||
if (commit) {
|
||||
#if 50613 <= MYSQL_VERSION_ID && MYSQL_VERSION_ID <= 50699
|
||||
if (ha_alter_info->group_commit_ctx) {
|
||||
ha_alter_info->group_commit_ctx = NULL;
|
||||
assert(!(TOKU_PARTITION_WRITE_FRM_DATA || altered_table->part_info == NULL));
|
||||
}
|
||||
// move the following to ha_tokudb::inplace_alter_table since commit_inplace_alter_table
|
||||
// is not called for all partitions. see ha_partition::commit_inplace_alter_table.
|
||||
#endif
|
||||
if (TOKU_PARTITION_WRITE_FRM_DATA || altered_table->part_info == NULL) {
|
||||
int error = write_frm_data(share->status_block, ctx->alter_txn, altered_table->s->path.str);
|
||||
if (error) {
|
||||
|
|
Loading…
Reference in a new issue