~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2009-05-20 23:51:08 UTC
  • mfrom: (1022.2.18 mordred)
  • Revision ID: brian@gaz-20090520235108-nb5he1em112798pb
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
2559
2559
static unsigned int
2560
2560
kill_one_thread(Session *, ulong id, bool only_kill_query)
2561
2561
{
2562
 
  Session *tmp;
 
2562
  Session *tmp= NULL;
2563
2563
  uint32_t error=ER_NO_SUCH_THREAD;
2564
2564
  pthread_mutex_lock(&LOCK_thread_count); // For unlink from list
2565
 
  I_List_iterator<Session> it(session_list);
2566
 
  while ((tmp=it++))
 
2565
  
 
2566
  for( vector<Session*>::iterator it= session_list.begin(); it != session_list.end(); ++it )
2567
2567
  {
2568
 
    if (tmp->thread_id == id)
 
2568
    if ((*it)->thread_id == id)
2569
2569
    {
 
2570
      tmp= *it;
2570
2571
      pthread_mutex_lock(&tmp->LOCK_delete);    // Lock from delete
2571
2572
      break;
2572
2573
    }