• Marko Mäkelä's avatar
    Merge Bug #56680 from mysql-5.1. · 15880f16
    Marko Mäkelä authored
    Additional fixes in 5.5:
    
    ibuf_set_del_mark(): Add diagnostics when setting a buffered delete-mark fails.
    
    ibuf_delete(): Correct a misleading comment about non-found records.
    
    rec_print(): Add a const qualifier to the index parameter.
    
    Bug #56680 wrong InnoDB results from a case-insensitive covering index
    
    row_search_for_mysql(): When a secondary index record might not be
    visible in the current transaction's read view and we consult the
    clustered index and optionally some undo log records, return the
    relevant columns of the clustered index record to MySQL instead of the
    secondary index record.
    
    ibuf_insert_to_index_page_low(): New function, refactored from
    ibuf_insert_to_index_page().
    
    ibuf_insert_to_index_page(): When we are inserting a record in place
    of a delete-marked record and some fields of the record differ, update
    that record just like row_ins_sec_index_entry_by_modify() would do.
    
    btr_cur_update_alloc_zip(): Make the function public.
    
    mysql_row_templ_t: Add clust_rec_field_no.
    
    row_sel_store_mysql_rec(), row_sel_push_cache_row_for_mysql(): Add the
    flag rec_clust, for returning data at clust_rec_field_no instead of
    rec_field_no. Resurrect the debug assertion that the record not be
    marked for deletion. (Bug #55626)
    
    [UNIV_DEBUG || UNIV_IBUF_DEBUG] ibuf_debug, buf_page_get_gen(),
    buf_flush_page_try():
    Implement innodb_change_buffering_debug=1 for evicting pages from the
    buffer pool, so that change buffering will be attempted more
    frequently.
    15880f16
innodb_bug56680.result 2.27 KB