~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to drizzled/records.cc

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
    rr_from_tempfile:
118
118
    -----------------
119
119
      Same as rr_from_pointers except that references are fetched from
120
 
      temporary file instead of from 
 
120
      temporary file instead of from
121
121
    rr_from_cache:
122
122
    --------------
123
123
      This is a special variant of rr_from_tempfile that can be used for
151
151
  info->table=table;
152
152
  info->file= table->file;
153
153
  info->forms= &info->table;            /* Only one table */
154
 
  
 
154
 
155
155
  if (table->s->tmp_table == NON_TRANSACTIONAL_TMP_TABLE &&
156
156
      !table->sort.addon_field)
157
157
    table->file->extra(HA_EXTRA_MMAP);
158
 
  
 
158
 
159
159
  if (table->sort.addon_field)
160
160
  {
161
161
    info->rec_buf= table->sort.addon_buf;
218
218
  {
219
219
    table->file->ha_rnd_init(0);
220
220
    info->cache_pos=table->sort.record_pointers;
221
 
    info->cache_end=info->cache_pos+ 
 
221
    info->cache_end=info->cache_pos+
222
222
                    table->sort.found_records*info->ref_length;
223
223
    info->read_record= (table->sort.addon_field ?
224
224
                        rr_unpack_from_buffer : rr_from_pointers);
236
236
          !(table->file->ha_table_flags() & HA_NOT_DELETE_WITH_CACHE))))
237
237
      table->file->extra_opt(HA_EXTRA_CACHE, session->variables.read_buff_size);
238
238
  }
239
 
  /* 
 
239
  /*
240
240
    Do condition pushdown for UPDATE/DELETE.
241
 
    TODO: Remove this from here as it causes two condition pushdown calls 
 
241
    TODO: Remove this from here as it causes two condition pushdown calls
242
242
    when we're running a SELECT and the condition cannot be pushed down.
243
243
  */
244
 
  if (session->variables.engine_condition_pushdown && 
245
 
      select && select->cond && 
 
244
  if (session->variables.engine_condition_pushdown &&
 
245
      select && select->cond &&
246
246
      (select->cond->used_tables() & table->map) &&
247
247
      !table->file->pushed_cond)
248
248
    table->file->cond_push(select->cond);
405
405
  Read a result set record from a temporary file after sorting.
406
406
 
407
407
  The function first reads the next sorted record from the temporary file.
408
 
  into a buffer. If a success it calls a callback function that unpacks 
 
408
  into a buffer. If a success it calls a callback function that unpacks
409
409
  the fields values use in the result set from this buffer into their
410
410
  positions in the regular record buffer.
411
411
 
456
456
  Read a result set record from a buffer after sorting.
457
457
 
458
458
  The function first reads the next sorted record from the sort buffer.
459
 
  If a success it calls a callback function that unpacks 
 
459
  If a success it calls a callback function that unpacks
460
460
  the fields values use in the result set from this buffer into their
461
461
  positions in the regular record buffer.
462
462