mariadb/storage/innobase/ut
Marko Mäkelä 37282cc6bd 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
2011-06-28 15:28:21 +03:00
..
ut0bh.c Add ut0bh.h and ut0bh.c. 2011-02-23 17:48:15 +11:00
ut0byte.c Bug#54728: Replace the dulint struct with a 64-bit integer. 2010-06-23 14:06:59 +03:00
ut0dbg.c Fix Bug #11765975 __FILE__ macros expanded to full path instead of relative 2011-02-25 00:33:13 -08:00
ut0list.c Renamed storage/innodb_plugin to storage/innobase, so that 1) it's the same 2009-08-07 12:16:00 +02:00
ut0mem.c WL#5486: Remove code for unsupported platforms 2010-07-15 08:13:30 -03:00
ut0rbt.c Merge from innodb-branches-innodb+ (2) 2010-04-19 20:53:16 +03:00
ut0rnd.c Renamed storage/innodb_plugin to storage/innobase, so that 1) it's the same 2009-08-07 12:16:00 +02:00
ut0ut.c Bug#12699505 Memory leak in row_create_index_for_mysql() 2011-06-28 15:28:21 +03:00
ut0vec.c Renamed storage/innodb_plugin to storage/innobase, so that 1) it's the same 2009-08-07 12:16:00 +02:00
ut0wqueue.c Import branches/innodb+ from SVN on top of storage/innobase. 2010-04-12 18:20:41 +03:00