~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_rsame.c

  • Committer: Brian Aker
  • Date: 2008-08-05 06:19:05 UTC
  • mfrom: (244.1.1 drizzle-mem-ebay)
  • mto: This revision was merged to the branch mainline in revision 264.
  • Revision ID: brian@tangent.org-20080805061905-1r8krslxae65qh76
Merge from Harrison Fisk of the Ebay + Google Hash engine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
  HP_SHARE *share=info->s;
31
31
 
32
32
  test_active(info);
33
 
  if (info->current_ptr[share->reclength])
 
33
  if (get_chunk_status(&share->recordspace, info->current_ptr) == CHUNK_STATUS_ACTIVE)
34
34
  {
35
35
    if (inx < -1 || inx >= (int) share->keys)
36
36
    {
46
46
        return(my_errno);
47
47
      }
48
48
    }
49
 
    memcpy(record,info->current_ptr,(size_t) share->reclength);
 
49
    hp_extract_record(share, record, info->current_ptr);
50
50
    return(0);
51
51
  }
52
52
  info->update=0;