~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_delete.c

  • Committer: Brian Aker
  • Date: 2008-12-19 07:02:38 UTC
  • Revision ID: brian@tangent.org-20081219070238-569uxp3vsr6r37v1
Updated/fix to foreign key test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* remove current record in heap-database */
17
17
 
18
 
#include "heap_priv.h"
 
18
#include "heapdef.h"
19
19
 
20
20
int heap_delete(HP_INFO *info, const unsigned char *record)
21
21
{
27
27
  test_active(info);
28
28
 
29
29
  if (info->opt_flag & READ_CHECK_USED)
30
 
    return(errno);                      /* Record changed */
 
30
    return(my_errno);                   /* Record changed */
31
31
  share->changed=1;
32
32
 
33
33
  rec_length = hp_get_encoded_data_length(share, record, &chunk_count);
51
51
err:
52
52
  if (++(share->records) == share->blength)
53
53
    share->blength+= share->blength;
54
 
  return(errno);
 
54
  return(my_errno);
55
55
}
56
56
 
57
57
 
125
125
    gpos=pos;
126
126
    if (!(pos=pos->next_key))
127
127
    {
128
 
      return(errno=HA_ERR_CRASHED);     /* This shouldn't happend */
 
128
      return(my_errno=HA_ERR_CRASHED);  /* This shouldn't happend */
129
129
    }
130
130
  }
131
131