~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/ha0ha.ic

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
/***************************************************************
13
13
Deletes a hash node. */
14
 
 
 
14
UNIV_INTERN
15
15
void
16
16
ha_delete_hash_node(
17
17
/*================*/
34
34
Sets hash node data. */
35
35
UNIV_INLINE
36
36
void
37
 
ha_node_set_data(
38
 
/*=============*/
 
37
ha_node_set_data_func(
 
38
/*==================*/
39
39
        ha_node_t*      node,   /* in: hash chain node */
 
40
#ifdef UNIV_DEBUG
 
41
        buf_block_t*    block,  /* in: buffer block containing the data */
 
42
#endif /* UNIV_DEBUG */
40
43
        void*           data)   /* in: pointer to the data */
41
44
{
 
45
#ifdef UNIV_DEBUG
 
46
        node->block = block;
 
47
#endif /* UNIV_DEBUG */
42
48
        node->data = data;
43
49
}
44
50
 
 
51
#ifdef UNIV_DEBUG
 
52
# define ha_node_set_data(n,b,d) ha_node_set_data_func(n,b,d)
 
53
#else /* UNIV_DEBUG */
 
54
# define ha_node_set_data(n,b,d) ha_node_set_data_func(n,d)
 
55
#endif /* UNIV_DEBUG */
 
56
 
45
57
/**********************************************************************
46
58
Gets the next node in a hash chain. */
47
59
UNIV_INLINE
64
76
        hash_table_t*   table,  /* in: hash table */
65
77
        ulint           fold)   /* in: fold value determining the chain */
66
78
{
67
 
        return(hash_get_nth_cell(table, hash_calc_hash(fold, table))->node);
 
79
        return((ha_node_t*)
 
80
               hash_get_nth_cell(table, hash_calc_hash(fold, table))->node);
68
81
}
69
82
 
70
83
/*****************************************************************