~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/ha/ha0ha.c

few updates and modifications to admin commands

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1994, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1994, 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
77
77
#ifndef UNIV_HOTBACKUP
78
78
        hash_create_mutexes(table, n_mutexes, mutex_level);
79
79
 
80
 
        table->heaps = static_cast<mem_block_info_t **>(mem_alloc(n_mutexes * sizeof(mem_block_info_t *)));
 
80
        table->heaps = mem_alloc(n_mutexes * sizeof(void*));
81
81
 
82
82
        for (i = 0; i < n_mutexes; i++) {
83
83
                table->heaps[i] = mem_heap_create_in_btr_search(4096);
159
159
 
160
160
        cell = hash_get_nth_cell(table, hash);
161
161
 
162
 
        prev_node = static_cast<ha_node_t *>(cell->node);
 
162
        prev_node = cell->node;
163
163
 
164
164
        while (prev_node != NULL) {
165
165
                if (prev_node->fold == fold) {
195
195
 
196
196
        /* We have to allocate a new chain node */
197
197
 
198
 
        node = static_cast<ha_node_t *>(mem_heap_alloc(hash_get_heap(table, fold), sizeof(ha_node_t)));
 
198
        node = mem_heap_alloc(hash_get_heap(table, fold), sizeof(ha_node_t));
199
199
 
200
200
        if (node == NULL) {
201
201
                /* It was a btr search type memory heap and at the moment
220
220
 
221
221
        node->next = NULL;
222
222
 
223
 
        prev_node = static_cast<ha_node_t *>(cell->node);
 
223
        prev_node = cell->node;
224
224
 
225
225
        if (prev_node == NULL) {
226
226