An error occurred fetching the project authors.
  1. 30 Oct, 2007 1 commit
  2. 05 Sep, 2007 1 commit
    • marko's avatar
      branches/zip: Simplify crash recovery in fast index creation. · 52a89286
      marko authored
      trx_t: Remove dict_undo_list and dict_redo_list.
      
      innobase_create_temporary_tablename(): Replace TEMP_TABLE_PREFIX with
      a table name suffix "#1" or "#2".  In this way, the user can restore
      precious data, should anything go wrong.  It is possible to reach an
      inconsistent state, because the creation, deletion and renaming of
      single-table tablespaces are not transactional.
      
      ut_print_namel(), fil_make_ibd_name(), innobase_rename_table(): Remove
      the special treatment of TEMP_TABLE_PREFIX.
      
      Introduce TEMP_INDEX_PREFIX == 0xff for temporary indexes.  This byte
      cannot occur in index names since MySQL 4.1.  However, it might have
      been possible to use this byte in MySQL 4.0.
      
      recv_recovery_from_checkpoint_finish(): Call the new function
      row_merge_drop_temp_indexes(), to drop all indexes whose name starts
      with the byte 0xff.
      
      row_merge_rename_indexes(): Renamed from row_merge_rename_index().
      Remove the parameter "index".
      
      row_drop_table_for_mysql(): Unconditionally call trx_commit_for_mysql().
      
      row_drop_table_for_mysql_no_commit(): Correct the function commit,
      based on the corrected comment of row_drop_table_for_mysql().  Rely on
      table->to_be_dropped instead of TEMP_TABLE_PREFIX.
      
      ha_innobase::add_index(): Simplify the control flow.
      52a89286
  3. 01 Aug, 2007 1 commit
  4. 18 Jan, 2007 2 commits
    • marko's avatar
    • marko's avatar
      branches/zip: Remove the fil_space_get_zip_size() call from · fff329cd
      marko authored
      buf_page_get_gen().  This saves one mutex operation per block request.
      
      buf_page_get_gen(), various macros and functions: Add parameter zip_size.
      
      btr_node_ptr_get_child(): Add parameter index.
      
      fil_space_get_latch(): Add optional output parameter zip_size.
      
      fil_space_get_zip_size(): Return 0 for space id==0, because the
      system tablespace is never compressed.
      
      fsp_header_init(): Remove the parameter zip_size.
      
      ibuf_free_excess_pages(): Remove the parameter zip_size.
      
      trx_rseg_t, trx_undo_t: Add field zip_size.
      
      xdes_lst_get_next(): Remove, unused.
      fff329cd
  5. 02 Jan, 2007 1 commit
  6. 13 Dec, 2006 1 commit
    • marko's avatar
      branches/zip: Make use of the previously unused state BUF_BLOCK_MEMORY. · 2208d259
      marko authored
      buf_LRU_get_free_block(): Document that the block is in the state
      BUF_BLOCK_READY_FOR_USE.
      
      buf_block_alloc(): Change the state of the block to BUF_BLOCK_MEMORY
      and document it.
      
      Replace those invocations of buf_block_alloc() with
      buf_LRU_get_free_block() where the allocated block is used for buffer
      pool input and output.  However, temporary copies of B-tree pages
      during reorganization are not used for file I/O, and such blocks are
      still allocated with buf_block_alloc().
      2208d259
  7. 30 Nov, 2006 3 commits
  8. 29 Nov, 2006 1 commit
  9. 24 Nov, 2006 1 commit
  10. 23 Nov, 2006 1 commit
    • marko's avatar
      branches/zip: Replace most references to block->state, block->offset, · 81608907
      marko authored
      and block->space with buf_block_get_state(block), buf_block_get_page_no(block),
      and buf_block_get_space(block).
      
      enum buf_block_state: Replaces the #define'd buf_block_t.state values.
      
      buf_block_get_state(): New function.
      
      buf_block_get_frame(): Add __attribute__((const)).
      81608907
  11. 30 Oct, 2006 1 commit
    • marko's avatar
      branches/zip: Prepare for buffer pool allocation in several chunks. · 91b16c3c
      marko authored
      buf_pool_t: Remove n_frames, max_size, and blocks_of_frames.
      The current buffer pool size is in curr_size.
      
      buf_pool_init(): Remove parameter max_size.
      
      buf_pool_get_max_size(), buf_pool_is_block(): Remove.
      
      buf_block_align(): Do not assume that the buffer pool is allocated
      in one chunk.  Replace dependency on buf_pool->blocks_of_frames
      with a call to buf_page_hash_get().
      91b16c3c
  12. 20 Oct, 2006 1 commit
    • marko's avatar
      branches/zip: Remove some more buf_block_align() calls. · 8562e752
      marko authored
      btr_cur_t: Move page_block to page_cur_t::block.
      
      page_cur_get_block(), page_cur_get_page_zip(): New functions.
      
      page_cur_position(): Add parameter block.
      
      Remove many page_zip parameters, now that there is page_cur_get_page_zip().
      Replace some page, page_zip parameters with block.
      
      Add some const qualifiers to function parameters and remove casts.
      
      PAGE_HEAP_NO_INFIMUM, PAGE_HEAP_NO_SUPREMUM, PAGE_HEAP_NO_USER_LOW:
      New constants.
      
      Replace some cursor code in low-level diagnostic functions with
      direct management of rec, because buf_block_t::buf_fix_count may be 0
      when the functions are called, and debug assertions would fail.
      8562e752
  13. 19 Oct, 2006 2 commits
    • marko's avatar
      branches/zip: Remove many fil_space_get_zip_size() calls. · 91f8a3dd
      marko authored
      ibuf_page(), ibuf_page_low(), ibuf_free_excess_pages(), ibuf_insert(),
      buf_read_page(), buf_read_ahead_linear(), buf_read_recv_pages():
      Add parameter zip_size.
      91f8a3dd
    • marko's avatar
      branches/zip: Remove some more buf_block_align() calls. · a3860f71
      marko authored
      btr_search_build_page_hash_index(), fsp_parse_init_file_page(),
      ibuf_parse_bitmap_init(): Replace page_t* with buf_block_t*.
      
      buf_read_ibuf_merge_pages(): Add const qualifiers.  Retrieve zip_size.
      
      ibuf_merge_or_delete_for_page(): Replace page_t* with buf_block_t*.
      Add parameter zip_size.
      a3860f71
  14. 18 Oct, 2006 1 commit
    • marko's avatar
      branches/zip: Eliminate many buf_block_align() calls. · c659b59a
      marko authored
      Replace page_t* or page_zip_des_t* parameters in some functions with
      buf_block_t*.
      
      buf_frame_get_page_zip(): Disable unless #ifdef UNIV_DEBUG || UNIV_ZIP_DEBUG.
      
      btr_cur_t: Add buf_block_t* page_block.
      
      btr_pcur_get_block(), btr_cur_get_block(), btr_cur_get_page_zip():
      New functions.
      
      btr_cur_position(): Add the parameter block.
      c659b59a
  15. 13 Oct, 2006 1 commit
    • marko's avatar
      branches/zip: Remove some more buf_block_align() calls. · 70e765ae
      marko authored
      Replace buf_frame_modify_clock_inc() with buf_block_modify_clock_inc().
      Replace buf_frame_get_lock_hash_val() with buf_block_get_lock_hash_val().
      Replace buf_frame_get_lock_mutex() with buf_block_get_lock_mutex().
      
      page_create_zip(), page_create(), page_create_low(), btr_page_free(),
      btr_page_free_low(): Replace page_t with buf_block_t.
      70e765ae
  16. 12 Oct, 2006 1 commit
    • marko's avatar
      branches/zip: Reduce the number of buf_block_align() calls. · c755e887
      marko authored
      btr_block_get(): New function to return buf_block_t.
      
      btr_page_alloc(), buf_page_get_release_on_io(), buf_page_get_gen(),
      buf_page_create(), fseg_create(), fseg_create_general(): Return buf_block_t.
      
      buf_page_get_known_nowait(): Expect buf_block_t instead of buf_frame_t.
      
      buf_frame_get_newest_modification(): Replace with
      buf_block_get_newest_modification().
      
      buf_page_dbg_add_level(): Replace with buf_block_dbg_add_level().
      
      buf_block_get_zip_size(): New function.
      
      buf_block_get_page_zip(): Reintroduce.
      
      recv_recover_page(): Replace page, space, page_no with block.
      
      ibuf_bitmap_page_init(): Replace page, zip_size with block.
      
      ibuf_parse_bitmap_init(): Remove the parameter zip_size.
      
      btr_search_drop_page_hash_index(): Replace page with block.
      c755e887
  17. 10 Oct, 2006 1 commit
  18. 09 Oct, 2006 2 commits
  19. 06 Oct, 2006 1 commit
    • marko's avatar
      branches/zip: Remove compilation errors with -DUNIV_HOTBACKUP. · 152fbb78
      marko authored
      dict_load_foreigns(): Enclose in #ifndef UNIV_HOTBACKUP.
      
      fil_extend_tablespaces_to_stored_len(): Pass zip_size to fil_read().
      
      buf_page_init_for_backup_restore(): Add parameter zip_size.
      Enclose the declaration in buf0buf.h in #ifdef UNIV_HOTBACKUP.
      
      recv_apply_log_recs_for_backup(): Replace the local variable "page"
      with the local variable "block".  Add local variable zip_size.
      152fbb78
  20. 19 Sep, 2006 1 commit
  21. 29 Aug, 2006 1 commit
  22. 11 Aug, 2006 1 commit
  23. 07 Aug, 2006 1 commit
  24. 02 Aug, 2006 1 commit
    • marko's avatar
      branches/zip: Fix some crash recovery bugs. · 441c29e9
      marko authored
      dict_load_table(): Initialize table->flags with zip_size.
      
      mlog_parse_nbytes(), mlog_parse_string(): Add parameter page_zip and
      write the changes also to the compressed page if one is specified.
      Assert that these functions are not called on FIL_PAGE_INDEX pages.
      
      buf_page_io_complete(): Replace block->frame with frame where appropriate.
      
      recv_parse_or_apply_log_rec_body(): Add ut_a(!page_zip) where appropriate.
      
      page_parse_delete_rec_list(): Add parameter page_zip.
      441c29e9
  25. 04 Jul, 2006 1 commit
  26. 19 Jun, 2006 1 commit
    • marko's avatar
      branches/zip: Add assertions. · 4e913e24
      marko authored
      btr_compress(): Invoke page_zip_validate() on the page being compressed.
      
      recv_parse_or_apply_log_rec_body(): Assert that MLOG_WRITE_STRING is
      never used on compressed B-tree pages.
      4e913e24
  27. 15 Jun, 2006 1 commit
    • marko's avatar
      branches/zip: Add parameter zip_size to fil_io(). · be7add3b
      marko authored
      fil_read(), fil_write(): Make these inlined functions in fil0fil.c.
      
      fil_write_lsn_and_arch_no_to_file(): Remove the parameter space_id and
      note that this function is to be called on the system tablespace, which
      is uncompressed.
      be7add3b
  28. 14 Jun, 2006 1 commit
    • marko's avatar
      branches/zip: Improve some assertions. · 77fa0fd6
      marko authored
      recv_parse_or_apply_log_rec_body(): Assert that mlog_parse_nbytes() is
      never called on compressed B-tree pages.
      
      page_zip_simple_validate(): Correct a typo in a debug assertion.
      
      xdes_calc_descriptor_page(): Fix an incorrect debug assertion.
      77fa0fd6
  29. 06 Jun, 2006 1 commit
    • marko's avatar
      branches/zip: Remove some more references to XDES_DESCRIBED_PER_PAGE. · 5e6324b7
      marko authored
      ibuf_parse_bitmap_init(), ibuf_bitmap_page_init(),
      ibuf_bitmap_page_get_bits(), ibuf_bitmap_set_bits(),
      ibuf_bitmap_page_no_calc(), ibuf_bitmap_get_map_page(),
      xdes_calc_descriptor_page(), xdes_calc_descriptor_index(),
      fsp_descr_page(): Add parameter zip_size.
      5e6324b7
  30. 16 May, 2006 1 commit
    • marko's avatar
      branches/zip: Shorten the log record MLOG_ZIP_PAGE_COMPRESS. · 00b55da6
      marko authored
      page_zip_copy(), page_zip_compress_write_log(): Add parameter 'index'.
      
      page_zip_parse_write_header(): Check for !page_zip only if page != NULL.
      
      page_zip_compress_write_log(), page_zip_parse_compress(): Omit some
      fields in the page header.  Omit the unused bytes between the modification
      log and the page trailer.
      
      parse_or_apply_log_rec_body(): Remove a bogus debug assertion.
      00b55da6
  31. 08 May, 2006 1 commit
  32. 26 Apr, 2006 1 commit
    • marko's avatar
      branches/zip: Minor cleanup and bug fixes · b0ae76c5
      marko authored
      btr_page_reorganize_low(): Rename new_page to temp_page.
      
      btr_store_big_rec_extern_fields(): FIL_PAGE_TYPE is 2 bytes, not 4.
      
      buf_page_init(), buf_page_create(), buf_read_page_low(),
      buf_page_init_for_read(): Add parameter zip_size.
      
      buf_page_init_for_backup_restore(),
      recv_apply_log_recs_for_backup(): Enclose in #ifdef UNIV_HOTBACKUP.
      
      Enclose some debug code in #ifdef UNIV_LOG_REPLICATE.
      
      page_zip_write_header_log(): Replace page_zip with a pointer to
      the uncompressed page.
      
      page_zip_write_rec(): Relax an assertion about blob_no + n_ext.
      
      page_copy_rec_list_to_created_page_write_log(): Allow logging to be disabled.
      b0ae76c5
  33. 25 Apr, 2006 1 commit
    • marko's avatar
      branches/zip: Write the compressed page size to SYS_TABLES.TYPE · 121623c1
      marko authored
      and to the file space header (FSP_PAGE_ZIP_SIZE, renamed from
      FSP_LOWEST_NO_WRITE).
      
      fil_space_struct: Add zip_size.
      
      dict_table_struct: Embed zip_size in flags.
      
      dict_table_zip_size(): Infer zip_size from table->flags.
      
      dict_sys_tables_get_zip_size(): Read zip_size from SYS_TABLES.TYPE.
      
      fil_space_get_zip_size(): Read zip_size from the file space header.
      
      Add the redo log entry type MLOG_ZIP_FILE_CREATE.
      121623c1
  34. 12 Apr, 2006 1 commit
  35. 11 Apr, 2006 1 commit
    • marko's avatar
      branches/zip: Add the redo log type MLOG_ZIP_PAGE_COMPRESS. Remove · 829229ce
      marko authored
      MLOG_ZIP_LIST_START_COPY and MLOG_ZIP_LIST_END_COPY.
      
      btr_compress(): Simplify a debug assertion.
      
      page_zip_compress_write_log(), page_zip_parse_compress(): New functions.
      
      page_cur_parse_insert_rec(): Simplify the code.
      
      page_parse_create_zip(): Removed.
      
      page_create_zip(), page_copy_rec_list_end(),
      page_copy_rec_list_start(): Invoke page_zip_compress_write_log().
      829229ce