• marko's avatar
    branches/innodb+: Merge revisions 3602:3608 from branches/zip: · 44e408b9
    marko authored
      ------------------------------------------------------------------------
      r3607 | marko | 2008-12-30 22:33:31 +0200 (Tue, 30 Dec 2008) | 20 lines
    
      branches/zip: Remove the dependency on the MySQL HASH table implementation.
      Use the InnoDB hash table for keeping track of INNOBASE_SHARE objects.
    
      struct st_innobase_share: Make table_name const uchar*.  Add the member
      table_name_hash.
    
      innobase_open_tables: Change the type from HASH to hash_table_t*.
    
      innobase_get_key(): Remove.
    
      innobase_fold_name(): New function, for computing the fold value for the
      InnoDB hash table.
    
      get_share(), free_share(): Use the InnoDB hash functions.
    
      innobase_end(): Free innobase_open_tables before shutting down InnoDB.
      Shutting down InnoDB will invalidate all memory allocated via InnoDB.
    
      rb://65 approved by Heikki Tuuri.  This addresses Issue #104.
      ------------------------------------------------------------------------
      r3608 | marko | 2008-12-30 22:45:04 +0200 (Tue, 30 Dec 2008) | 22 lines
    
      branches/zip: When setting the PAGE_LEVEL of a compressed B-tree page
      from or to 0, compress the page at the same time.  This is necessary,
      because the column information stored on the compressed page will
      differ between leaf and non-leaf pages.  Leaf pages are identified by
      PAGE_LEVEL=0.  This bug was reported as Issue #150.
    
      Document the similarity between btr_page_create() and
      btr_page_empty().  Make the function signature of btr_page_empty()
      identical with btr_page_create().  (This will add the parameter "level".)
    
      btr_root_raise_and_insert(): Replace some code with a call to
      btr_page_empty().
    
      btr_attach_half_pages(): Assert that the page level has already been
      set on both block and new_block.  Do not set it again.
    
      btr_discard_only_page_on_level(): Document that this function is
      probably never called.  Make it work on any height tree.  (Tested on
      2-high tree by disabling btr_lift_page_up().)
    
      rb://68
      ------------------------------------------------------------------------
    44e408b9
btr0btr.c 101 KB