Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug #27753193 ASSERTION `PREBUILT->TRX->ERROR_KEY_NUM <
HA_ALTER_INFO->KEY_COUNT' Problem: During OPTIMIZE TABLE operation, Simultaneously INSERT duplicate entry into the table, then alter operation corresponds to optimize table catches duplicate entry error while applying row logs. If the table holds innodb generated GEN_CLUST_INDEX and the duplicate entry error is on last unique column then ha_innobase::inplace_alter_table() hits assert on (m_prebuilt->trx->error_key_num < ha_alter_info->key_count). Fix: Added a check inside ha_innobase::inplace_alter_table(). If there is innodb generated GEN_CLUST_INDEX in the table then m_prebuilt->trx->error_key_num and ha_alter_info->key_count could be equal. RB: 20081 Reviewed by : jimmy.yang@oracle.com
- Loading branch information
1 parent
496e613
commit 1452ca7
Showing
3 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters