~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/hp_scan.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-20 09:27:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2285.
  • Revision ID: olafvdspek@gmail.com-20110420092749-hw1q9rfj1pumc2no
Session Cache

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
/* Scan through all rows */
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:
52
53
      if (pos >= info->next_block)
53
54
      {
54
55
        info->update= 0;
55
 
        return(errno= HA_ERR_END_OF_FILE);
 
56
        return(errno=  drizzled::HA_ERR_END_OF_FILE);
56
57
      }
57
58
    }
58
59
    hp_find_record(info, pos);
60
61
  if (get_chunk_status(&share->recordspace, info->current_ptr) != CHUNK_STATUS_ACTIVE)
61
62
  {
62
63
    info->update= HA_STATE_PREV_FOUND | HA_STATE_NEXT_FOUND;
63
 
    return(errno=HA_ERR_RECORD_DELETED);
 
64
    return(errno= drizzled::HA_ERR_RECORD_DELETED);
64
65
  }
65
66
  info->update= HA_STATE_PREV_FOUND | HA_STATE_NEXT_FOUND | HA_STATE_AKTIV;
66
67
  hp_extract_record(share, record, info->current_ptr);