~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: lbieber
  • Date: 2010-08-10 18:52:46 UTC
  • mfrom: (1698.1.2 staging)
  • Revision ID: lbieber@orisndriz03-20100810185246-7nawc4svsxr4llh5
Merge Joe -remove the increment wrapper calls in my_pthread.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
476
476
  if (storeGlobals())
477
477
  {
478
478
    disconnect(ER_OUT_OF_RESOURCES, true);
479
 
    status_var_increment(status_var.aborted_connects); 
 
479
    status_var.aborted_connects++;
480
480
    return true;
481
481
  }
482
482
  return false;
526
526
 
527
527
    killed= Session::KILL_CONNECTION;
528
528
 
529
 
    status_var_increment(status_var.aborted_connects);
 
529
    status_var.aborted_connects++;
530
530
 
531
531
    /* Can't use my_error() since store_globals has not been called. */
532
532
    /* TODO replace will better error message */
574
574
  if (client->authenticate())
575
575
    return false;
576
576
 
577
 
  status_var_increment(status_var.aborted_connects); 
 
577
  status_var.aborted_connects++;
578
578
 
579
579
  return true;
580
580
}
588
588
 
589
589
  if (is_authenticated != true)
590
590
  {
591
 
    status_var_increment(status_var.access_denied);
 
591
    status_var.access_denied++;
592
592
    /* isAuthenticated has pushed the error message */
593
593
    return false;
594
594
  }
1560
1560
  /* If necessary, log any aborted or unauthorized connections */
1561
1561
  if (killed || client->wasAborted())
1562
1562
  {
1563
 
    status_var_increment(status_var.aborted_threads);
 
1563
    status_var.aborted_threads++;
1564
1564
  }
1565
1565
 
1566
1566
  if (client->wasAborted())
1703
1703
  memset(&status_var, 0, sizeof(status_var));
1704
1704
 
1705
1705
  /* Reset the counters of all key caches (default and named). */
1706
 
  reset_key_cache_counters();
1707
1706
  flush_status_time= time((time_t*) 0);
1708
1707
  current_global_counters.max_used_connections= 1; /* We set it to one, because we know we exist */
1709
1708
  LOCK_status.unlock();