~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_statrec.cc

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
merge lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
                               bool skip_deleted_blocks)
197
197
{
198
198
  int locked,error,cache_read;
199
 
  uint32_t cache_length;
200
199
  MYISAM_SHARE *share=info->s;
201
200
 
202
201
  cache_read=0;
203
 
  cache_length=0;
204
202
  if (info->opt_flag & WRITE_CACHE_USED &&
205
203
      (info->rec_cache.pos_in_file <= filepos || skip_deleted_blocks) &&
206
204
      flush_io_cache(&info->rec_cache))
211
209
        (skip_deleted_blocks || !filepos))
212
210
    {
213
211
      cache_read=1;                             /* Read record using cache */
214
 
      cache_length=(uint) (info->rec_cache.read_end - info->rec_cache.read_pos);
215
212
    }
216
213
    else
217
214
      info->rec_cache.seek_not_done=1;          /* Filepos is changed */