~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Joe Daly
  • Date: 2010-06-25 03:22:55 UTC
  • mto: This revision was merged to the branch mainline in revision 1656.
  • Revision ID: skinny.moey@gmail.com-20100625032255-bzj84xre67qldfpi
initial user stats impl

Show diffs side-by-side

added added

removed removed

Lines of Context:
484
484
  if (storeGlobals())
485
485
  {
486
486
    disconnect(ER_OUT_OF_RESOURCES, true);
487
 
    status_var_increment(current_global_counters.aborted_connects);
 
487
    status_var_increment(status_var.aborted_connects); 
488
488
    return true;
489
489
  }
490
490
  return false;
534
534
 
535
535
    killed= Session::KILL_CONNECTION;
536
536
 
537
 
    status_var_increment(current_global_counters.aborted_connects);
 
537
    status_var_increment(status_var.aborted_connects);
538
538
 
539
539
    /* Can't use my_error() since store_globals has not been called. */
540
540
    /* TODO replace will better error message */
582
582
  if (client->authenticate())
583
583
    return false;
584
584
 
585
 
  status_var_increment(current_global_counters.aborted_connects);
 
585
  status_var_increment(status_var.aborted_connects); 
 
586
 
586
587
  return true;
587
588
}
588
589
 
595
596
 
596
597
  if (is_authenticated != true)
597
598
  {
 
599
    status_var_increment(status_var.access_denied);
598
600
    /* isAuthenticated has pushed the error message */
599
601
    return false;
600
602
  }
1566
1568
  /* If necessary, log any aborted or unauthorized connections */
1567
1569
  if (killed || client->wasAborted())
1568
1570
  {
1569
 
    status_var_increment(current_global_counters.aborted_threads);
 
1571
    status_var_increment(status_var.aborted_threads);
1570
1572
  }
1571
1573
 
1572
1574
  if (client->wasAborted())