~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_extra.c

  • Committer: Brian Aker
  • Date: 2008-07-14 04:46:28 UTC
  • Revision ID: brian@tangent.org-20080714044628-mk3nt2rbaeqt8oe9
Removed oddball types in my_global.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    if (info->opt_flag & READ_CACHE_USED)
55
55
    {
56
56
      reinit_io_cache(&info->rec_cache,READ_CACHE,0,
57
 
                      (pbool) (info->lock_type != F_UNLCK),
58
 
                      (pbool) test(info->update & HA_STATE_ROW_CHANGED)
 
57
                      (bool) (info->lock_type != F_UNLCK),
 
58
                      (bool) test(info->update & HA_STATE_ROW_CHANGED)
59
59
                      );
60
60
    }
61
61
    info->update= ((info->update & HA_STATE_CHANGED) | HA_STATE_NEXT_FOUND |
101
101
      if (!(init_io_cache(&info->rec_cache,info->dfile,
102
102
                         (uint) min(info->state->data_file_length+1,
103
103
                                    cache_size),
104
 
                          READ_CACHE,0L,(pbool) (info->lock_type != F_UNLCK),
 
104
                          READ_CACHE,0L,(bool) (info->lock_type != F_UNLCK),
105
105
                          MYF(share->write_flag & MY_WAIT_IF_FULL))))
106
106
      {
107
107
        info->opt_flag|=READ_CACHE_USED;
115
115
    if (info->opt_flag & READ_CACHE_USED)
116
116
    {
117
117
      reinit_io_cache(&info->rec_cache,READ_CACHE,info->nextpos,
118
 
                      (pbool) (info->lock_type != F_UNLCK),
119
 
                      (pbool) test(info->update & HA_STATE_ROW_CHANGED));
 
118
                      (bool) (info->lock_type != F_UNLCK),
 
119
                      (bool) test(info->update & HA_STATE_ROW_CHANGED));
120
120
      info->update&= ~HA_STATE_ROW_CHANGED;
121
121
      if (share->concurrent_insert)
122
122
        info->rec_cache.end_of_file=info->state->data_file_length;
136
136
        !share->state.header.uniques)
137
137
      if (!(init_io_cache(&info->rec_cache,info->dfile, cache_size,
138
138
                         WRITE_CACHE,info->state->data_file_length,
139
 
                          (pbool) (info->lock_type != F_UNLCK),
 
139
                          (bool) (info->lock_type != F_UNLCK),
140
140
                          MYF(share->write_flag & MY_WAIT_IF_FULL))))
141
141
      {
142
142
        info->opt_flag|=WRITE_CACHE_USED;