~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_page.cc

  • Committer: Monty Taylor
  • Date: 2009-12-23 08:01:21 UTC
  • mto: This revision was merged to the branch mainline in revision 1253.
  • Revision ID: mordred@inaugust.com-20091223080121-iveugdrewkp7iqyi
Oy. Bigger change than I normally like - but this stuff is all intertwined.
Moved a bunch of things to public drizzled/ area. Split some files. Made some
convenience libs. EVENTUALLY, some of this will be able to be re-factored, but
for now I'm ok with erring on the side of too many files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  {
38
38
    info->last_keypage=HA_OFFSET_ERROR;
39
39
    mi_print_error(info->s, HA_ERR_CRASHED);
40
 
    my_errno=HA_ERR_CRASHED;
 
40
    errno=HA_ERR_CRASHED;
41
41
    return(0);
42
42
  }
43
43
  info->last_keypage=page;
46
46
  {
47
47
    info->last_keypage = HA_OFFSET_ERROR;
48
48
    mi_print_error(info->s, HA_ERR_CRASHED);
49
 
    my_errno = HA_ERR_CRASHED;
 
49
    errno = HA_ERR_CRASHED;
50
50
    tmp = 0;
51
51
  }
52
52
  return(tmp);
65
65
      page+keyinfo->block_length > info->state->key_file_length ||
66
66
      (page & (MI_MIN_KEY_BLOCK_LENGTH-1)))
67
67
  {
68
 
    my_errno=EINVAL;
 
68
    errno=EINVAL;
69
69
    return((-1));
70
70
  }
71
71
#endif
121
121
    if (info->state->key_file_length >=
122
122
        info->s->base.max_key_file_length - keyinfo->block_length)
123
123
    {
124
 
      my_errno=HA_ERR_INDEX_FILE_FULL;
 
124
      errno=HA_ERR_INDEX_FILE_FULL;
125
125
      return(HA_OFFSET_ERROR);
126
126
    }
127
127
    pos=info->state->key_file_length;