~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-13 16:39:27 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110813163927-luksv0xydcqmi5pz
Refactor iocache

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
  ignore_not_found_rows= 0;
106
106
  table->status=0;                      /* And it's always found */
107
107
 
108
 
  if (select && my_b_inited(select->file))
 
108
  if (select && select->file->inited())
109
109
  {
110
110
    tempfile= select->file;
111
111
  }
114
114
    tempfile= table->sort.io_cache;
115
115
  }
116
116
 
117
 
  if (tempfile && my_b_inited(tempfile)) // Test if ref-records was used
 
117
  if (tempfile && tempfile->inited()) // Test if ref-records was used
118
118
  {
119
 
    read_record= (table->sort.addon_field ?
120
 
                  rr_unpack_from_tempfile : rr_from_tempfile);
 
119
    read_record= table->sort.addon_field ? rr_unpack_from_tempfile : rr_from_tempfile;
121
120
 
122
121
    io_cache=tempfile;
123
122
    io_cache->reinit_io_cache(internal::READ_CACHE,0L,0,0);