~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2011-01-05 16:29:27 UTC
  • mto: (2060.2.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2063.
  • Revision ID: brian@tangent.org-20110105162927-fi2gnmlz35qcagik
Add additional gperf for non-reserved SQL keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
Created 11/5/1995 Heikki Tuuri
24
24
*******************************************************/
25
25
 
26
 
#include <config.h>
 
26
#include "config.h"
27
27
#include "buf0lru.h"
28
28
 
29
29
#ifdef UNIV_NONINL
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)) {