~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/hp_rrnd.cc

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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);