~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2009-03-20 05:04:15 UTC
  • Revision ID: brian@tangent.org-20090320050415-jeh6bsia5ckj01li
Fix for scheduler no longer needing to understand locks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1855
1855
 
1856
1856
static void create_new_thread(Session *session)
1857
1857
{
1858
 
  pthread_mutex_lock(&LOCK_thread_count);
1859
 
 
1860
1858
  ++connection_count;
1861
1859
 
1862
1860
  if (connection_count > max_used_connections)
1872
1870
  /* 
1873
1871
    If we error on creation we drop the connection and delete the session.
1874
1872
  */
 
1873
  pthread_mutex_lock(&LOCK_thread_count);
1875
1874
  session_list.append(session);
 
1875
  pthread_mutex_unlock(&LOCK_thread_count);
1876
1876
  if (thread_scheduler.add_connection(session))
1877
1877
  {
1878
1878
    char error_message_buff[DRIZZLE_ERRMSG_SIZE];