~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/mf_iocache.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-14 12:20:36 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110814122036-ydjayvqjgwixp3o8
Refactor iocache

Show diffs side-by-side

added added

removed removed

Lines of Context:
472
472
 */
473
473
int io_cache_st::get()
474
474
{
 
475
  if (read_pos != read_end)
 
476
    return *read_pos++;
 
477
 
475
478
  if (pre_read)
476
 
    (*pre_read)(this);
 
479
    pre_read(this);
477
480
 
478
481
  unsigned char buff;
479
 
  if ((*read_function)(this, &buff, 1))
 
482
  if (read_function(this, &buff, 1))
480
483
    return my_b_EOF;
481
484
 
482
485
  if (post_read)
483
 
    (*post_read)(this);
 
486
    post_read(this);
484
487
 
485
488
  return buff;
486
489
}