18 #include "heap_priv.h"
19 #include <drizzled/error_t.h>
29 int heap_rsame(
register HP_INFO *info,
unsigned char *record,
int inx)
34 if (get_chunk_status(&share->recordspace, info->current_ptr) == CHUNK_STATUS_ACTIVE)
36 if (inx < -1 || inx >= (
int) share->keys)
38 return(errno= drizzled::HA_ERR_WRONG_INDEX);
43 hp_make_key(share->keydef + inx, &info->lastkey[0], record);
44 if (!hp_search(info, share->keydef + inx, &info->lastkey[0], 3))
50 hp_extract_record(share, record, info->current_ptr);
55 return(errno= drizzled::HA_ERR_RECORD_DELETED);