diff options
| author | Marko Mäkelä <marko.makela@oracle.com> | 2011-06-28 15:28:21 +0300 |
|---|---|---|
| committer | Marko Mäkelä <marko.makela@oracle.com> | 2011-06-28 15:28:21 +0300 |
| commit | 37282cc6bdaec20ce2a8775336dc5b4a228d71fe (patch) | |
| tree | 95a9643e85d406c74cdc02ad9ddc8ec35e97a552 /sql/sql_parse.cc | |
| parent | e232ed099044d44acd8a83b1cd8563b22c6273d4 (diff) | |
| download | mariadb-git-37282cc6bdaec20ce2a8775336dc5b4a228d71fe.tar.gz | |
Bug#12699505 Memory leak in row_create_index_for_mysql()
DB_COL_APPEARS_TWICE_IN_INDEX: Remove. This condition is already
checked and reported by MySQL before passing the index definition to
the storage engine.
row_create_index_for_mysql(): Remove the redundant check for
DB_COL_APPEARS_TWICE_IN_INDEX. When enforcing the column prefix index
limit, invoke dict_mem_index_free(index) to plug the memory leak. In
the loop, use index->n_def instead of dict_index_get_n_fields(index),
because the latter would be 0 for indexes that have not been copied to
the data dictionary cache.
innodb-use-sys-malloc.test:
Add test cases for attempting to trigger the error checks in
row_create_index_for_mysql(). Before MySQL 5.5 and WL#5743, the leak
is only reproducible if ha_innobase::max_supported_key_part_length()
returned a higher limit than the one used in
row_create_index_for_mysql().
In MySQL 5.5 and later, the leak is reproducible with
innodb_large_prefix=true.
rb:688 approved by Jimmy Yang
Diffstat (limited to 'sql/sql_parse.cc')
0 files changed, 0 insertions, 0 deletions
