~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_extra.c

  • Committer: Stewart Smith
  • Date: 2008-07-13 06:56:15 UTC
  • mto: (210.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 211.
  • Revision ID: stewart@flamingspork.com-20080713065615-vzok75kgnnviokl9
Move MD5() into a UDF

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
/* - Set databasehandler to normal */
19
19
/* - Reset recordpointers as after open database */
20
20
 
21
 
#include "heap_priv.h"
22
 
 
23
 
using namespace drizzled;
 
21
#include "heapdef.h"
24
22
 
25
23
static void heap_extra_keyflag(register HP_INFO *info,
26
24
                               enum ha_extra_function function);
30
28
 
31
29
int heap_extra(register HP_INFO *info, enum ha_extra_function function)
32
30
{
 
31
  DBUG_ENTER("heap_extra");
 
32
 
33
33
  switch (function) {
34
34
  case HA_EXTRA_RESET_STATE:
35
35
    heap_reset(info);
46
46
  default:
47
47
    break;
48
48
  }
49
 
  return(0);
 
49
  DBUG_RETURN(0);
50
50
} /* heap_extra */
51
51
 
52
52
 
53
53
int heap_reset(HP_INFO *info)
54
54
{
55
55
  info->lastinx= -1;
56
 
  info->current_record= UINT32_MAX;
 
56
  info->current_record= (ulong) ~0L;
57
57
  info->current_hash_ptr=0;
58
58
  info->update=0;
59
59
  info->next_block=0;
67
67
static void heap_extra_keyflag(register HP_INFO *info,
68
68
                               enum ha_extra_function function)
69
69
{
70
 
  uint32_t  idx;
 
70
  uint  idx;
71
71
 
72
72
  for (idx= 0; idx< info->s->keys; idx++)
73
73
  {