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

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/sync0sync.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) 1995, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1995, 2011, Oracle and/or its affiliates. All Rights Reserved.
4
4
Copyright (c) 2008, Google Inc.
5
5
 
6
6
Portions of this file contain modifications contributed and copyrighted by
219
219
sync_thread_add_level(
220
220
/*==================*/
221
221
        void*   latch,  /*!< in: pointer to a mutex or an rw-lock */
222
 
        ulint   level); /*!< in: level in the latching order; if
 
222
        ulint   level,  /*!< in: level in the latching order; if
223
223
                        SYNC_LEVEL_VARYING, nothing is done */
 
224
        ibool   relock) /*!< in: TRUE if re-entering an x-lock */
 
225
        __attribute__((nonnull));
224
226
/******************************************************************//**
225
227
Removes a latch from the thread level array if it is found there.
226
228
@return TRUE if found in the array; it is no error if the latch is
446
448
#define SYNC_DICT_HEADER        995
447
449
#define SYNC_IBUF_HEADER        914
448
450
#define SYNC_IBUF_PESS_INSERT_MUTEX 912
449
 
#define SYNC_IBUF_MUTEX         910     /* ibuf mutex is really below
450
 
                                        SYNC_FSP_PAGE: we assign a value this
451
 
                                        high only to make the program to pass
452
 
                                        the debug checks */
453
451
/*-------------------------------*/
454
452
#define SYNC_INDEX_TREE         900
455
453
#define SYNC_TREE_NODE_NEW      892
466
464
#define SYNC_FSP                400
467
465
#define SYNC_FSP_PAGE           395
468
466
/*------------------------------------- Insert buffer headers */
469
 
/*------------------------------------- ibuf_mutex */
 
467
#define SYNC_IBUF_MUTEX         370     /* ibuf_mutex */
470
468
/*------------------------------------- Insert buffer tree */
 
469
#define SYNC_IBUF_INDEX_TREE    360
 
470
#define SYNC_IBUF_TREE_NODE_NEW 359
 
471
#define SYNC_IBUF_TREE_NODE     358
471
472
#define SYNC_IBUF_BITMAP_MUTEX  351
472
473
#define SYNC_IBUF_BITMAP        350
473
474
/*------------------------------------- MySQL query cache mutex */
480
481
#define SYNC_LOG                170
481
482
#define SYNC_RECV               168
482
483
#define SYNC_WORK_QUEUE         162
483
 
#define SYNC_SEARCH_SYS_CONF    161     /* for assigning btr_search_enabled */
484
484
#define SYNC_SEARCH_SYS         160     /* NOTE that if we have a memory
485
485
                                        heap that can be extended to the
486
486
                                        buffer pool, its logical level is