~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/ha/hash0hash.c

Merged from Toru - removal of my_time_t.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (c) 1997, 2009, Innobase Oy. All Rights Reserved.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify it under
6
 
the terms of the GNU General Public License as published by the Free Software
7
 
Foundation; version 2 of the License.
8
 
 
9
 
This program is distributed in the hope that it will be useful, but WITHOUT
10
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
 
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
 
 
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
16
 
 
17
 
*****************************************************************************/
18
 
 
19
1
/******************************************************
20
2
The simple hash table utility
21
3
 
 
4
(c) 1997 Innobase Oy
 
5
 
22
6
Created 5/20/1997 Heikki Tuuri
23
7
*******************************************************/
24
8
 
105
89
 
106
90
        array = ut_malloc(sizeof(hash_cell_t) * prime);
107
91
 
108
 
#if defined UNIV_AHI_DEBUG || defined UNIV_DEBUG
 
92
#ifdef UNIV_DEBUG
109
93
        table->adaptive = FALSE;
110
 
#endif /* UNIV_AHI_DEBUG || UNIV_DEBUG */
 
94
#endif /* UNIV_DEBUG */
111
95
        table->array = array;
112
96
        table->n_cells = prime;
113
97
        table->n_mutexes = 0;