~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: Brian Aker
  • Date: 2009-01-24 13:22:10 UTC
  • Revision ID: brian@gir-3.local-20090124132210-kdoac6t6ztyp3crc
Move number of threads to use for pool of threads to module. Removed slave
thrad cheats from session object.

Show diffs side-by-side

added added

removed removed

Lines of Context:
347
347
  session->cuted_fields = 0L;
348
348
  table->next_number_field=table->found_next_number_field;
349
349
 
350
 
  if (session->slave_thread && (info.handle_duplicates == DUP_UPDATE) && (table->next_number_field != NULL))
351
 
    goto abort;
352
 
 
353
350
  error=0;
354
351
  session->set_proc_info("update");
355
352
  if (duplic == DUP_REPLACE)
1214
1211
  restore_record(table,s->default_values);              // Get empty record
1215
1212
  table->next_number_field=table->found_next_number_field;
1216
1213
 
1217
 
  if (session->slave_thread && (info.handle_duplicates == DUP_UPDATE))
1218
 
    return(1);
1219
 
 
1220
1214
  session->cuted_fields=0;
1221
1215
  if (info.ignore || info.handle_duplicates != DUP_ERROR)
1222
1216
    table->file->extra(HA_EXTRA_IGNORE_DUP_KEY);