~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/btr0sea.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

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, 2009, Innobase Oy. 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
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
13
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
 
Place, Suite 330, Boston, MA 02111-1307 USA
 
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
 
15
St, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
41
41
btr_search_sys_create(
42
42
/*==================*/
43
43
        ulint   hash_size);     /*!< in: hash index hash table size */
 
44
/*****************************************************************//**
 
45
Frees the adaptive search system at a database shutdown. */
 
46
UNIV_INTERN
 
47
void
 
48
btr_search_sys_free(void);
 
49
/*=====================*/
44
50
 
45
51
/********************************************************************//**
46
52
Disable the adaptive hash search system and empty the index. */
174
180
        btr_cur_t*      cursor);/*!< in: cursor which was positioned on the
175
181
                                record to delete using btr_cur_search_...,
176
182
                                the record is not yet deleted */
 
183
#if defined UNIV_AHI_DEBUG || defined UNIV_DEBUG
177
184
/********************************************************************//**
178
185
Validates the search system.
179
186
@return TRUE if ok */
181
188
ibool
182
189
btr_search_validate(void);
183
190
/*======================*/
 
191
#else
 
192
# define btr_search_validate()  TRUE
 
193
#endif /* defined UNIV_AHI_DEBUG || defined UNIV_DEBUG */
184
194
 
185
195
/** Flag: has the search system been enabled?
186
196
Protected by btr_search_latch and btr_search_enabled_mutex. */
187
197
extern bool btr_search_enabled;
188
198
 
 
199
/** Flag: whether the search system has completed its disabling process,
 
200
It is set to TRUE right after buf_pool_drop_hash_index() in
 
201
btr_search_disable(), indicating hash index entries are cleaned up.
 
202
Protected by btr_search_latch and btr_search_enabled_mutex. */
 
203
extern ibool    btr_search_fully_disabled;
 
204
 
189
205
/** The search info struct in an index */
190
206
struct btr_search_struct{
191
207
        ulint   ref_count;      /*!< Number of blocks in this index tree