~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/buf/buf0lru.c

  • Committer: Brian Aker
  • Date: 2010-12-25 00:28:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2031.
  • Revision ID: brian@tangent.org-20101225002849-g73mg6ihulajis0o
First pass in refactoring of the name of my_decimal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
244
244
                return;
245
245
        }
246
246
 
247
 
        page_arr = static_cast<unsigned long *>(ut_malloc(
248
 
                sizeof(ulint) * BUF_LRU_DROP_SEARCH_HASH_SIZE));
 
247
        page_arr = ut_malloc(
 
248
                sizeof(ulint) * BUF_LRU_DROP_SEARCH_HASH_SIZE);
249
249
 
250
250
        buf_pool_mutex_enter(buf_pool);
251
251
 
952
952
                        ibool   lru;
953
953
                        page_zip_set_size(&block->page.zip, zip_size);
954
954
 
955
 
                        block->page.zip.data = static_cast<unsigned char *>(buf_buddy_alloc(
956
 
                                buf_pool, zip_size, &lru));
 
955
                        block->page.zip.data = buf_buddy_alloc(
 
956
                                buf_pool, zip_size, &lru);
957
957
 
958
958
                        UNIV_MEM_DESC(block->page.zip.data, zip_size, block);
959
959
                } else {
1513
1513
                from the LRU list), refuse to free bpage. */
1514
1514
alloc:
1515
1515
                buf_pool_mutex_exit_forbid(buf_pool);
1516
 
                b = static_cast<buf_page_t *>(buf_buddy_alloc(buf_pool, sizeof *b, NULL));
 
1516
                b = buf_buddy_alloc(buf_pool, sizeof *b, NULL);
1517
1517
                buf_pool_mutex_exit_allow(buf_pool);
1518
1518
 
1519
1519
                if (UNIV_UNLIKELY(!b)) {