~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_statrec.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-13 15:57:32 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110813155732-jrr1aq3gyeyxl9qv
Move flush() into iocache

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
{
116
116
  if (info->opt_flag & WRITE_CACHE_USED)
117
117
  {
118
 
    if (flush_io_cache(&info->rec_cache))
 
118
    if (info->rec_cache.flush())
119
119
    {
120
120
      return(-1);
121
121
    }
166
166
  {
167
167
    if (info->opt_flag & WRITE_CACHE_USED &&
168
168
        info->rec_cache.pos_in_file <= pos &&
169
 
        flush_io_cache(&info->rec_cache))
 
169
        info->rec_cache.flush())
170
170
      return(-1);
171
171
    info->rec_cache.seek_not_done=1;            /* We have done a seek */
172
172
 
201
201
  cache_read=0;
202
202
  if (info->opt_flag & WRITE_CACHE_USED &&
203
203
      (info->rec_cache.pos_in_file <= filepos || skip_deleted_blocks) &&
204
 
      flush_io_cache(&info->rec_cache))
 
204
      info->rec_cache.flush())
205
205
    return(errno);
206
206
  if (info->opt_flag & READ_CACHE_USED)
207
207
  {                                             /* Cache in use */