~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/records.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:
315
315
  int tmp;
316
316
  for (;;)
317
317
  {
318
 
    if (my_b_read(info->io_cache,info->ref_pos,info->ref_length))
 
318
    if (info->io_cache->read(info->ref_pos, info->ref_length))
319
319
      return -1;                                        /* End of cursor */
320
320
    if (!(tmp=info->cursor->rnd_pos(info->record,info->ref_pos)))
321
321
      break;
346
346
*/
347
347
static int rr_unpack_from_tempfile(ReadRecord *info)
348
348
{
349
 
  if (my_b_read(info->io_cache, info->rec_buf, info->ref_length))
 
349
  if (info->io_cache->read(info->rec_buf, info->ref_length))
350
350
    return -1;
351
351
  Table *table= info->table;
352
352
  (*table->sort.unpack)(table->sort.addon_field, info->rec_buf);
475
475
      length= (uint32_t) rest_of_file;
476
476
    }
477
477
 
478
 
    if (!length || my_b_read(info->io_cache, info->getCache(), length))
 
478
    if (!length || info->io_cache->read(info->getCache(), length))
479
479
    {
480
480
      return -1;                        /* End of cursor */
481
481
    }