• Michael Widenius's avatar
    Fixes some bug in Aria recovery: · 2f85f78d
    Michael Widenius authored
    - _ma_apply_redo_index: Assertion `page_offset != 0 && page_offset + length <= page_length' failed
    Fixes one bug and one log assert when inserting rows:
    - _ma_log_split: Assertion `org_length <= info->s->max_index_block_size' failed
    - write_block_record:  Assertion '(data_length < MAX_TAIL_SIZE(block_size)' failed
    Mark in recovery log where _ma_log_add() calls was done (for better debugging).
    
    storage/maria/ma_bitmap.c:
      Don't write a head part on a tail page. (Caused an assert in write_block_record())
    storage/maria/ma_delete.c:
      Mark in recovery log where _ma_log_add() calls was done
    storage/maria/ma_key_recover.c:
      Mark in recovery log where _ma_log_add() calls was done
      Fixed not handled logging case for overfull index pages.
    storage/maria/ma_key_recover.h:
      Mark in recovery log where _ma_log_add() calls was done
    storage/maria/ma_loghandler.h:
      Mark in recovery log where _ma_log_add() calls was done
    storage/maria/ma_rt_key.c:
      Mark in recovery log where _ma_log_add() calls was done
    storage/maria/ma_write.c:
      Mark in recovery log where _ma_log_add() calls was done.
      Fixed wrong call to _ma_split_page() for overfull pages
    2f85f78d
ma_bitmap.c 83 KB