~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_hash.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 20:05:58 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622200558-oq3jb987di9yj70r
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
262
262
    unsigned char *key= (unsigned char*) hash_key(info, record, &idx, 1);
263
263
    if (hash_search(info, key, idx))
264
264
      /* Duplicate entry */
265
 
      return(true);
 
265
      return true;
266
266
  }
267
267
 
268
268
  flag=0;
269
269
  if (!(empty=(HASH_LINK*) alloc_dynamic(&info->array)))
270
270
    /* No more memory */
271
 
    return(true);
 
271
    return true;
272
272
 
273
273
  data=dynamic_element(&info->array,0,HASH_LINK*);
274
274
  halfbuff= info->blength >> 1;