~fallenpegasus/drizzle/logcsv

« back to all changes in this revision

Viewing changes to plugin/innobase/btr/btr0sea.c

  • Committer: lbieber at stabletransit
  • Date: 2010-10-13 16:20:08 UTC
  • mfrom: (1843.1.3 build)
  • Revision ID: lbieber@drizzle-build-n02.wc1.dfw1.stabletransit.com-20101013162008-qi2e6k5yvfm16964
Merge Stewart - update innobase plugin to be based on innodb_plugin 1.0.6
Merge Monty - more valgrind cleanup
Merge Monty - Moved libdrizzle api listings from doxygen to sphinx

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
        btr_search_sys->hash_index = ha_create(hash_size, 0, 0);
176
176
}
177
177
 
 
178
/*****************************************************************//**
 
179
Frees the adaptive search system at a database shutdown. */
 
180
UNIV_INTERN
 
181
void
 
182
btr_search_sys_free(void)
 
183
/*=====================*/
 
184
{
 
185
        rw_lock_free(&btr_search_latch);
 
186
        mem_free(btr_search_latch_temp);
 
187
        btr_search_latch_temp = NULL;
 
188
        mem_heap_free(btr_search_sys->hash_index->heap);
 
189
        hash_table_free(btr_search_sys->hash_index);
 
190
        mem_free(btr_search_sys);
 
191
        btr_search_sys = NULL;
 
192
}
 
193
 
178
194
/********************************************************************//**
179
195
Disable the adaptive hash search system and empty the index. */
180
196
UNIV_INTERN
957
973
        /* Increment the page get statistics though we did not really
958
974
        fix the page: for user info only */
959
975
 
960
 
        buf_pool->n_page_gets++;
 
976
        buf_pool->stat.n_page_gets++;
961
977
 
962
978
        return(TRUE);
963
979