1. 15 Dec, 2006 1 commit
    • marko's avatar
      branches/zip: Minor improvements. · 0fb620f5
      marko authored
      buf_flush_remove(): New function, for removing a block from the flush list.
      Sliced from buf_flush_write_complete().
      
      buf_page_set_state(): Allow transitions between BUF_BLOCK_ZIP_PAGE
      and BUF_BLOCK_ZIP_DIRTY.
      0fb620f5
  2. 14 Dec, 2006 1 commit
  3. 13 Dec, 2006 1 commit
    • marko's avatar
      branches/zip: Make use of the previously unused state BUF_BLOCK_MEMORY. · cb530ba3
      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().
      cb530ba3
  4. 12 Dec, 2006 3 commits
  5. 11 Dec, 2006 5 commits
    • marko's avatar
      branches/zip: Make the code compile with all debugging enabled · 91aae178
      marko authored
      buf_buddy_relocate(): Replace ut_align_down() with ut_align_offset()
      in assertions.
      
      buf0buddy.h: Include buf0buf.h and sync0sync.h.
      91aae178
    • marko's avatar
      branches/zip: Implement the whole allocation algorithm of compressed pages. · f9a10f4c
      marko authored
      buf_LRU_free_block(): Free compressed-only pages and their
      descriptors with buf_buddy_free().
      
      buf_LRU_get_free_only(): New function for returning a block from
      buf_pool->free if one is available.  Split from buf_LRU_get_free_block().
      
      buf_buddy_alloc_zip(): Rename from buf_buddy_alloc_low() and make static.
      Remove parameter "split".  Always try to split.
      
      buf_buddy_free_block(): Rename to buf_buddy_block_free().
      
      buf_buddy_block_register(): New function for registering buf_block_t
      objects reserved by the allocator.
      
      buf_buddy_alloc_from(): New function for allocating an object from a
      bigger object, and putting the unused parts on the free list.
      
      buf_buddy_alloc_clean_zip(): New function for allocating memory by
      replacing an unmodified compressed page.
      
      buf_buddy_alloc_low(): New function for allocating memory, either from
      the free lists of compressed pages, from the global free list, or from
      unmodified pages in the buffer pool.
      f9a10f4c
    • marko's avatar
      branches/zip: buf_buddy_relocate(): Split some lines differently on · 9bf07dae
      marko authored
      popular demand.
      9bf07dae
    • marko's avatar
      branches/zip: Add buf_pool->zip_hash for keeping track on pages allocated · d387f148
      marko authored
      to the buddy system for allocating compressed pages and their descriptors.
      
      buf_buddy_free_block(): New function: Deallocate the buffer frame.
      
      buf_buddy_free(), buf_buddy_free_low(): Return void instead of a pointer
      to a freed buffer frame.
      d387f148
    • marko's avatar
      branches/zip: buf_buddy_relocate(): Relocate buf_page_t objects that represent · e2a384eb
      marko authored
      clean compressed pages (BUF_BLOCK_ZIP_PAGE).
      e2a384eb
  6. 08 Dec, 2006 2 commits
  7. 07 Dec, 2006 6 commits
  8. 05 Dec, 2006 2 commits
  9. 04 Dec, 2006 3 commits
  10. 30 Nov, 2006 9 commits
  11. 29 Nov, 2006 2 commits
  12. 28 Nov, 2006 3 commits
  13. 27 Nov, 2006 2 commits