~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: LinuxJedi
  • Date: 2010-08-21 21:31:59 UTC
  • mto: (1750.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1751.
  • Revision ID: linuxjedi@linuxjedi-laptop-20100821213159-g9kiyzog436l4oxt
Add a proper connections counter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
534
534
    current_global_counters.max_used_connections= connection_count;
535
535
  }
536
536
 
 
537
  current_global_counters.connections++;
537
538
  thread_id= variables.pseudo_thread_id= global_thread_id++;
538
539
 
539
540
  LOCK_thread_count.lock();
1721
1722
 
1722
1723
  flush_status_time= time((time_t*) 0);
1723
1724
  current_global_counters.max_used_connections= 1; /* We set it to one, because we know we exist */
 
1725
  current_global_counters.connections= 0;
1724
1726
}
1725
1727
 
1726
1728
user_var_entry *Session::getVariable(LEX_STRING &name, bool create_if_not_exists)