~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/blackhole/ha_blackhole.cc

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
}
176
176
 
177
177
 
178
 
int ha_blackhole::index_read_idx_map(unsigned char *, uint32_t, const unsigned char *, 
 
178
int ha_blackhole::index_read_idx_map(unsigned char *, uint32_t, const unsigned char *,
179
179
                                     key_part_map, enum ha_rkey_function)
180
180
{
181
181
  return(HA_ERR_END_OF_FILE);
219
219
 
220
220
  length= (uint) strlen(table_name);
221
221
  pthread_mutex_lock(&blackhole_mutex);
222
 
    
 
222
 
223
223
  if (!(share= (st_blackhole_share*) hash_search(&blackhole_open_tables,
224
224
                                                 (unsigned char*) table_name, length)))
225
225
  {
230
230
 
231
231
    share->table_name_length= length;
232
232
    my_stpcpy(share->table_name, table_name);
233
 
    
 
233
 
234
234
    if (my_hash_insert(&blackhole_open_tables, (unsigned char*) share))
235
235
    {
236
236
      free((unsigned char*) share);
237
237
      share= NULL;
238
238
      goto error;
239
239
    }
240
 
    
 
240
 
241
241
    thr_lock_init(&share->lock);
242
242
  }
243
243
  share->use_count++;
244
 
  
 
244
 
245
245
error:
246
246
  pthread_mutex_unlock(&blackhole_mutex);
247
247
  return share;
274
274
  blackhole_hton->state= SHOW_OPTION_YES;
275
275
  blackhole_hton->create= blackhole_create_handler;
276
276
  blackhole_hton->flags= HTON_CAN_RECREATE;
277
 
  
 
277
 
278
278
  pthread_mutex_init(&blackhole_mutex, MY_MUTEX_INIT_FAST);
279
279
  (void) hash_init(&blackhole_open_tables, system_charset_info,32,0,0,
280
280
                   (hash_get_key) blackhole_get_key,