~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2010-11-16 20:38:33 UTC
  • mto: This revision was merged to the branch mainline in revision 1938.
  • Revision ID: brian@tangent.org-20101116203833-csn581b7jwlkum0w
Finish change so that we use a shared_ptr for the session list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
551
551
  disconnect(0, true);
552
552
}
553
553
 
554
 
bool Session::schedule(Session::Ptr arg)
 
554
bool Session::schedule(Session::shared_ptr arg)
555
555
{
556
556
  arg->scheduler= plugin::Scheduler::getScheduler();
557
557
  assert(arg->scheduler);
581
581
    // We should do something about an error...
582
582
  }
583
583
 
584
 
  if (plugin::Scheduler::getScheduler()->addSession(arg))
 
584
  if (plugin::Scheduler::getScheduler()->addSession(arg.get()))
585
585
  {
586
586
    DRIZZLE_CONNECTION_START(thread_id);
587
587
    char error_message_buff[DRIZZLE_ERRMSG_SIZE];