~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/mem/mem0dbg.c

  • Committer: Marisa Plumb
  • Date: 2010-12-04 02:38:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1984.
  • Revision ID: marisa.plumb@gmail.com-20101204023829-2khzxh30wxi256db
updates to a few sql docs 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1994, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1994, 2010, 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
29
29
/* The mutex which protects in the debug version the hash table
30
30
containing the list of live memory heaps, and also the global
31
31
variables below. */
32
 
UNIV_INTERN mutex_t             mem_hash_mutex;
33
 
 
34
 
#ifdef UNIV_PFS_MUTEX
35
 
/* Key to register mem_hash_mutex with performance schema */
36
 
UNIV_INTERN mysql_pfs_key_t     mem_hash_mutex_key;
37
 
#endif /* UNIV_PFS_MUTEX */
38
 
 
 
32
UNIV_INTERN mutex_t     mem_hash_mutex;
39
33
# endif /* !UNIV_HOTBACKUP */
40
34
 
41
35
/* The following variables contain information about the
155
149
        /* Initialize the hash table */
156
150
        ut_a(FALSE == mem_hash_initialized);
157
151
 
158
 
        mutex_create(mem_hash_mutex_key, &mem_hash_mutex, SYNC_MEM_HASH);
 
152
        mutex_create(&mem_hash_mutex, SYNC_MEM_HASH);
159
153
 
160
154
        for (i = 0; i < MEM_HASH_SIZE; i++) {
161
155
                UT_LIST_INIT(*mem_hash_get_nth_cell(i));
248
242
mem_field_erase(
249
243
/*============*/
250
244
        byte*   buf,    /*!< in: memory field */
251
 
        ulint   /*n __attribute__((unused))*/)
 
245
        ulint   n __attribute__((unused)))
252
246
                        /*!< in: how many bytes the user requested */
253
247
{
254
248
        byte*   usr_buf;
449
443
mem_heap_validate_or_print(
450
444
/*=======================*/
451
445
        mem_heap_t*     heap,   /*!< in: memory heap */
452
 
        byte*           /*top __attribute__((unused))*/,
 
446
        byte*           top __attribute__((unused)),
453
447
                                /*!< in: calculate and validate only until
454
448
                                this top pointer in the heap is reached,
455
449
                                if this pointer is NULL, ignored */