~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_write.c

  • Committer: Brian Aker
  • Date: 2008-08-10 04:50:31 UTC
  • Revision ID: brian@tangent.org-20080810045031-8ak1sgfsfh8y2jse
HeadĀ ulongĀ conversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#define HIGHUSED 8
27
27
 
28
28
static HASH_INFO *hp_find_free_hash(HP_SHARE *info, HP_BLOCK *block,
29
 
                                     ulong records);
 
29
                                     uint32_t records);
30
30
 
31
31
int heap_write(HP_INFO *info, const uchar *record)
32
32
{
153
153
{
154
154
  HP_SHARE *share = info->s;
155
155
  int flag;
156
 
  ulong halfbuff,hashnr,first_index;
 
156
  uint32_t halfbuff,hashnr,first_index;
157
157
  uchar *ptr_to_rec= NULL,*ptr_to_rec2= NULL;
158
158
  HASH_INFO *empty, *gpos= NULL, *gpos2= NULL, *pos;
159
159
 
341
341
        /* Returns ptr to block, and allocates block if neaded */
342
342
 
343
343
static HASH_INFO *hp_find_free_hash(HP_SHARE *info,
344
 
                                     HP_BLOCK *block, ulong records)
 
344
                                     HP_BLOCK *block, uint32_t records)
345
345
{
346
346
  uint block_pos;
347
347
  size_t length;