- 12 Dec, 2006 3 commits
-
-
marko authored
the LRU list regardless of their size. buf_buddy_alloc_clean_zip(): Rename to buf_buddy_alloc_clean(), now that also uncompressed blocks can be reclaimed. Use buf_buddy_alloc_zip() instead of reusing the freed block directly, since buf_buddy_free() may combine blocks.
-
marko authored
-
marko authored
buf_buddy_alloc(), buf_buddy_alloc_low(): Add parameter "lru" for enabling allocation from the list of least-recently-used blocks. buf_buddy_alloc_low(): Release buf_pool->mutex while calling buf_LRU_get_free_block().
-
- 11 Dec, 2006 5 commits
-
-
marko authored
buf_buddy_relocate(): Replace ut_align_down() with ut_align_offset() in assertions. buf0buddy.h: Include buf0buf.h and sync0sync.h.
-
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.
-
marko authored
popular demand.
-
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.
-
marko authored
clean compressed pages (BUF_BLOCK_ZIP_PAGE).
-
- 08 Dec, 2006 2 commits
-
-
marko authored
introduced ib_longlong and %ll length specifier are not C89.) row_ext_t: Change char* buf to byte* buf to avoid signedness warnings. Change the type of all bit fields to unsigned. rec_get_next_ptr(): Add (byte*) casts to avoid arithmetics on void*. page_zip_decompress_clust(): Do not mix declarations and code.
-
marko authored
free block in order to create two adjacent free blocks that can be recombined. Add some debug assertions. buf_buddy_relocate(): New function: Try to relocate a free block.
-
- 07 Dec, 2006 6 commits
-
-
marko authored
-
marko authored
-
marko authored
buf_buddy_alloc_free_low() to buf_buddy_alloc_low().
-
marko authored
Add parameter "split" for enabling splits.
-
marko authored
compressed pages from the buffer pool. Makefile.am: Add buf0buddy.h, buf0buddy.ic. buf/Makefile.am: Add buf0buddy.c. Introduce the constants BUF_BUDDY_LOW and BUF_BUDDY_SIZES. buf_pool_t: Add zip_mutex and the lists zip_clean and zip_free[]. buf_page_get_mutex(): Return &buf_pool->zip_mutex instead of NULL. buf_buddy_get_offset(), buf_buddy_get(), buf_buddy_get_slot(), buf_buddy_alloc_free(), buf_buddy_alloc_free_low(): New functions.
-
marko authored
-
- 05 Dec, 2006 2 commits
- 04 Dec, 2006 3 commits
-
-
marko authored
buf_LRU_block_remove_hashed_page() changes the state of the block. This error was introduced in r1090.
-
marko authored
to free_or_flush_list. The list node pointers can be shared, because a block can never be belong to both lists at the same time.
-
marko authored
as the field will be read without mutex protection in buf_page_io_complete().
-
- 30 Nov, 2006 9 commits
-
-
marko authored
-
marko authored
(state == BUF_BLOCK_ZIP_PAGE). Make use of buf_page_in_file() and buf_page_get_mutex(). buf_block_get_newest_modification(): Rename to buf_page_get_newest_modification().
-
marko authored
Add m_nonempty for facilitating the test in page_zip_alloc(). This reduces the combined size of the bit-fields to 32 bits. Thus, sizeof(page_zip_des_t) == 2 machine words on 32-bit and wider systems.
-
marko authored
LRU_position and possibly freed_page_clock. All these fields are protected by buf_pool->mutex rather than buf_page_get_mutex(). buf_page_set_accessed(): Add a mutex_own() assertion.
-
marko authored
on a NULL pointer. This error was introduced in r1082.
-
marko authored
of the buffer pool from buf_block_t to buf_page_t. Replace some buf_block_t* parameters with buf_page_t*. Add accessor functions.
-
marko authored
decompression from page_zip_des_t to buf_page_t, because the fields needed in compression are modified without holding the block mutex. All writes to bit-fields sharing a machine word must be protected by the same mutex or rw-lock.
-
marko authored
buf_block_buf_fix_inc_func() to eliminate an #ifdef in every invocation.
-
marko authored
to ut_uint64_align_down() and ut_uint64_align_up(), to reflect the rename of ib_ulonglong to ib_uint64_t in r1085.
-
- 29 Nov, 2006 2 commits
- 28 Nov, 2006 3 commits
- 27 Nov, 2006 2 commits
- 24 Nov, 2006 3 commits