~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_extra.c

  • Committer: Monty Taylor
  • Date: 2008-07-05 22:08:52 UTC
  • mto: This revision was merged to the branch mainline in revision 77.
  • Revision ID: monty@inaugust.com-20080705220852-cqd9t6tfkhvlcf73
Removed HAVE_LONG_LONG, as this is now assumed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
int heap_extra(register HP_INFO *info, enum ha_extra_function function)
30
30
{
 
31
  DBUG_ENTER("heap_extra");
 
32
 
31
33
  switch (function) {
32
34
  case HA_EXTRA_RESET_STATE:
33
35
    heap_reset(info);
44
46
  default:
45
47
    break;
46
48
  }
47
 
  return(0);
 
49
  DBUG_RETURN(0);
48
50
} /* heap_extra */
49
51
 
50
52
 
51
53
int heap_reset(HP_INFO *info)
52
54
{
53
55
  info->lastinx= -1;
54
 
  info->current_record= UINT32_MAX;
 
56
  info->current_record= (ulong) ~0L;
55
57
  info->current_hash_ptr=0;
56
58
  info->update=0;
57
59
  info->next_block=0;
65
67
static void heap_extra_keyflag(register HP_INFO *info,
66
68
                               enum ha_extra_function function)
67
69
{
68
 
  uint32_t  idx;
 
70
  uint  idx;
69
71
 
70
72
  for (idx= 0; idx< info->s->keys; idx++)
71
73
  {