~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rkey.c

  • Committer: Brian Aker
  • Date: 2009-02-12 22:45:08 UTC
  • Revision ID: brian@tangent.org-20090212224508-mrd9jwgn1zjdpqdk
Minor refactoring (we will need to disconnect the code from the include
file).

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
#include "heapdef.h"
17
17
 
18
 
int heap_rkey(HP_INFO *info, unsigned char *record, int inx, const unsigned char *key, 
 
18
#include <string.h>
 
19
 
 
20
int heap_rkey(HP_INFO *info, unsigned char *record, int inx, const unsigned char *key,
19
21
              key_part_map keypart_map, enum ha_rkey_function find_flag)
20
22
{
21
23
  unsigned char *pos;
34
36
    heap_rb_param custom_arg;
35
37
 
36
38
    custom_arg.keyseg= info->s->keydef[inx].seg;
37
 
    custom_arg.key_length= info->lastkey_len= 
 
39
    custom_arg.key_length= info->lastkey_len=
38
40
      hp_rb_pack_key(keyinfo, (unsigned char*) info->lastkey,
39
41
                     (unsigned char*) key, keypart_map);
40
42
    custom_arg.search_flag= SEARCH_FIND | SEARCH_SAME;