~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/btr0sea.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1996, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
141
141
                                for which we know that
142
142
                                block->buf_fix_count == 0 */
143
143
/********************************************************************//**
144
 
Drops a page hash index when a page is freed from a fseg to the file system.
145
 
Drops possible hash index if the page happens to be in the buffer pool. */
 
144
Drops a possible page hash index when a page is evicted from the buffer pool
 
145
or freed in a file segment. */
146
146
UNIV_INTERN
147
147
void
148
148
btr_search_drop_page_hash_when_freed(
180
180
        btr_cur_t*      cursor);/*!< in: cursor which was positioned on the
181
181
                                record to delete using btr_cur_search_...,
182
182
                                the record is not yet deleted */
 
183
#if defined UNIV_AHI_DEBUG || defined UNIV_DEBUG
183
184
/********************************************************************//**
184
185
Validates the search system.
185
186
@return TRUE if ok */
187
188
ibool
188
189
btr_search_validate(void);
189
190
/*======================*/
190
 
 
191
 
/** Flag: has the search system been enabled?
192
 
Protected by btr_search_latch and btr_search_enabled_mutex. */
193
 
extern char btr_search_enabled;
 
191
#else
 
192
# define btr_search_validate()  TRUE
 
193
#endif /* defined UNIV_AHI_DEBUG || defined UNIV_DEBUG */
194
194
 
195
195
/** The search info struct in an index */
196
196
struct btr_search_struct{
260
260
/** The adaptive hash index */
261
261
extern btr_search_sys_t*        btr_search_sys;
262
262
 
263
 
/** @brief The latch protecting the adaptive search system
264
 
 
265
 
This latch protects the
266
 
(1) hash index;
267
 
(2) columns of a record to which we have a pointer in the hash index;
268
 
 
269
 
but does NOT protect:
270
 
 
271
 
(3) next record offset field in a record;
272
 
(4) next or previous records on the same page.
273
 
 
274
 
Bear in mind (3) and (4) when using the hash index.
275
 
*/
276
 
extern rw_lock_t*       btr_search_latch_temp;
277
 
 
278
 
/** The latch protecting the adaptive search system */
279
 
#define btr_search_latch        (*btr_search_latch_temp)
280
 
 
281
263
#ifdef UNIV_SEARCH_PERF_STAT
282
264
/** Number of successful adaptive hash index lookups */
283
265
extern ulint    btr_search_n_succ;