~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Jay Pipes
  • Date: 2008-09-09 20:10:57 UTC
  • mto: (383.2.4 fix-failing-tests)
  • mto: This revision was merged to the branch mainline in revision 386.
  • Revision ID: jay@mysql.com-20080909201057-3qkgcxqaps2s58y9
Re-enabled a number of passing tests from trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
/***************************************************************
13
13
Deletes a hash node. */
14
 
UNIV_INTERN
 
14
 
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_func(
38
 
/*==================*/
 
37
ha_node_set_data(
 
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 */
43
40
        void*           data)   /* in: pointer to the data */
44
41
{
45
 
#ifdef UNIV_DEBUG
46
 
        node->block = block;
47
 
#endif /* UNIV_DEBUG */
48
42
        node->data = data;
49
43
}
50
44
 
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
 
 
57
45
/**********************************************************************
58
46
Gets the next node in a hash chain. */
59
47
UNIV_INLINE
76
64
        hash_table_t*   table,  /* in: hash table */
77
65
        ulint           fold)   /* in: fold value determining the chain */
78
66
{
79
 
        return((ha_node_t*)
80
 
               hash_get_nth_cell(table, hash_calc_hash(fold, table))->node);
 
67
        return(hash_get_nth_cell(table, hash_calc_hash(fold, table))->node);
81
68
}
82
69
 
83
70
/*****************************************************************