~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.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:
514
514
  start_time=(time_t) 0;
515
515
  start_utime= 0L;
516
516
  utime_after_lock= 0L;
517
 
  slave_thread = 0;
518
517
  memset(&variables, 0, sizeof(variables));
519
518
  thread_id= 0;
520
519
  file_id = 0;
835
834
  if (state_to_set != Session::KILL_QUERY)
836
835
  {
837
836
    thr_alarm_kill(thread_id);
838
 
    if (!slave_thread)
839
 
      thread_scheduler.post_kill_notification(this);
 
837
    thread_scheduler.post_kill_notification(this);
840
838
  }
841
839
  if (mysys_var)
842
840
  {
2248
2246
  return(&session->query);
2249
2247
}
2250
2248
 
2251
 
extern "C" int session_slave_thread(const Session *session)
2252
 
{
2253
 
  return(session->slave_thread);
2254
 
}
2255
 
 
2256
2249
extern "C" int session_non_transactional_update(const Session *session)
2257
2250
{
2258
2251
  return(session->transaction.all.modified_non_trans_table);