~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Joe Daly
  • Date: 2010-04-29 03:08:04 UTC
  • mto: This revision was merged to the branch mainline in revision 1523.
  • Revision ID: skinny.moey@gmail.com-20100429030804-ppssp19xwyrgm5of
remove com_stat_vars and rework lock in scoreboard to not lock on Sessions locating a slot they previously owned

Show diffs side-by-side

added added

removed removed

Lines of Context:
195
195
  switch (command) {
196
196
  case COM_INIT_DB:
197
197
  {
198
 
    status_var_increment(session->status_var.com_stat[SQLCOM_CHANGE_DB]);
199
198
    if (packet_length == 0)
200
199
    {
201
200
      my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0));
473
472
    drizzle_reset_errors(session, 0);
474
473
  }
475
474
 
476
 
  status_var_increment(session->status_var.com_stat[lex->sql_command]);
477
 
 
478
475
  assert(session->transaction.stmt.hasModifiedNonTransData() == false);
479
476
 
480
477
  /* now we are ready to execute the statement */