~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/hp_rrnd.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 21:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2449.
  • Revision ID: olafvdspek@gmail.com-20111024212354-j32gbc2sbsw0985q
Use str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
/* Read a record from a random position */
17
17
 
18
18
#include "heap_priv.h"
 
19
#include <drizzled/error_t.h>
19
20
 
20
21
/*
21
22
           Returns one of following values:
32
33
  if (!(info->current_ptr= pos))
33
34
  {
34
35
    info->update= 0;
35
 
    return(errno= HA_ERR_END_OF_FILE);
 
36
    return(errno=  drizzled::HA_ERR_END_OF_FILE);
36
37
  }
37
38
  if (get_chunk_status(&share->recordspace, info->current_ptr) != CHUNK_STATUS_ACTIVE)
38
39
  {
39
40
    /* treat deleted and linked chunks as deleted */
40
41
    info->update= HA_STATE_PREV_FOUND | HA_STATE_NEXT_FOUND;
41
 
    return(errno=HA_ERR_RECORD_DELETED);
 
42
    return(errno= drizzled::HA_ERR_RECORD_DELETED);
42
43
  }
43
44
  info->update=HA_STATE_PREV_FOUND | HA_STATE_NEXT_FOUND | HA_STATE_AKTIV;
44
45
  hp_extract_record(share, record, info->current_ptr);