~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

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(
192
192
# define btr_search_validate()  TRUE
193
193
#endif /* defined UNIV_AHI_DEBUG || defined UNIV_DEBUG */
194
194
 
195
 
/** Flag: has the search system been enabled?
196
 
Protected by btr_search_latch and btr_search_enabled_mutex. */
197
 
extern char     btr_search_enabled;
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
 
 
205
195
/** The search info struct in an index */
206
196
struct btr_search_struct{
207
197
        ulint   ref_count;      /*!< Number of blocks in this index tree
270
260
/** The adaptive hash index */
271
261
extern btr_search_sys_t*        btr_search_sys;
272
262
 
273
 
/** @brief The latch protecting the adaptive search system
274
 
 
275
 
This latch protects the
276
 
(1) hash index;
277
 
(2) columns of a record to which we have a pointer in the hash index;
278
 
 
279
 
but does NOT protect:
280
 
 
281
 
(3) next record offset field in a record;
282
 
(4) next or previous records on the same page.
283
 
 
284
 
Bear in mind (3) and (4) when using the hash index.
285
 
*/
286
 
extern rw_lock_t*       btr_search_latch_temp;
287
 
 
288
 
/** The latch protecting the adaptive search system */
289
 
#define btr_search_latch        (*btr_search_latch_temp)
290
 
 
291
263
#ifdef UNIV_SEARCH_PERF_STAT
292
264
/** Number of successful adaptive hash index lookups */
293
265
extern ulint    btr_search_n_succ;