~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/blackhole/ha_blackhole.cc

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
}
55
55
 
56
56
int ha_blackhole::open(const char *name, int mode __attribute__((unused)),
57
 
                       uint test_if_locked __attribute__((unused)))
 
57
                       uint32_t test_if_locked __attribute__((unused)))
58
58
{
59
59
  if (!(share= get_share(name)))
60
60
    return(HA_ERR_OUT_OF_MEM);
76
76
  return(0);
77
77
}
78
78
 
79
 
const char *ha_blackhole::index_type(uint key_number __attribute__((unused)))
 
79
const char *ha_blackhole::index_type(uint32_t key_number __attribute__((unused)))
80
80
{
81
81
  return("BTREE");
82
82
}
113
113
}
114
114
 
115
115
 
116
 
int ha_blackhole::info(uint flag)
 
116
int ha_blackhole::info(uint32_t flag)
117
117
{
118
118
  memset(&stats, 0, sizeof(stats));
119
119
  if (flag & HA_STATUS_AUTO)
174
174
 
175
175
 
176
176
int ha_blackhole::index_read_idx_map(unsigned char * buf __attribute__((unused)),
177
 
                                     uint idx __attribute__((unused)),
 
177
                                     uint32_t idx __attribute__((unused)),
178
178
                                     const unsigned char * key __attribute__((unused)),
179
179
                                     key_part_map keypart_map __attribute__((unused)),
180
180
                                     enum ha_rkey_function find_flag __attribute__((unused)))
218
218
static st_blackhole_share *get_share(const char *table_name)
219
219
{
220
220
  st_blackhole_share *share;
221
 
  uint length;
 
221
  uint32_t length;
222
222
 
223
223
  length= (uint) strlen(table_name);
224
224
  pthread_mutex_lock(&blackhole_mutex);