~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2010-11-29 03:53:29 UTC
  • Revision ID: brian@tangent.org-20101129035329-vh5b9w73flloxwad
This extends our coverage of interrupting active threads. With no crash
capabilities in the testing framework, we can't really test for the issue
this solves,....

Show diffs side-by-side

added added

removed removed

Lines of Context:
410
410
    delete (*iter).second;
411
411
  }
412
412
  life_properties.clear();
413
 
 
414
 
#if 0
415
 
  drizzled::util::custom_backtrace();
416
 
#endif
417
413
}
418
414
 
419
415
void Session::setClient(plugin::Client *client_arg)
427
423
  this->checkSentry();
428
424
 
429
425
  setKilled(state_to_set);
 
426
  scheduler->killSession(this);
 
427
 
430
428
  if (state_to_set != Session::KILL_QUERY)
431
429
  {
432
 
    scheduler->killSession(this);
433
430
    DRIZZLE_CONNECTION_DONE(thread_id);
434
431
  }
435
432
 
436
 
  assert(_thread);
437
 
  _thread->interrupt();
438
 
 
439
433
  if (mysys_var)
440
434
  {
441
435
    boost_unique_lock_t scopedLock(mysys_var->mutex);