~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/stats_schema.cc

  • Committer: Joe Daly
  • Date: 2010-06-26 02:14:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1656.
  • Revision ID: skinny.moey@gmail.com-20100626021449-aiirxjmxazj0s0va
add counter logic for rows sent/received/inserted/updated

Show diffs side-by-side

added added

removed removed

Lines of Context:
373
373
  add_field("ACCESS_DENIED");
374
374
  add_field("CONNECTED_TIME_SEC");
375
375
  add_field("EXECUTION_TIME_NSEC");
 
376
  add_field("ROWS_FETCHED");
 
377
  add_field("ROWS_UPDATED");
 
378
  add_field("ROWS_DELETED");
 
379
  add_field("ROWS_INSERTED");
376
380
}
377
381
 
378
382
CumulativeUserStatsTool::Generator::Generator(Field **arg, LoggingStats *logging_stats) :
415
419
      push(status_vars->getStatusVarCounters()->access_denied);
416
420
      push(status_vars->getStatusVarCounters()->connection_time);
417
421
      push(status_vars->getStatusVarCounters()->execution_time_nsec);
 
422
      push(status_vars->sent_row_count);
 
423
      push(status_vars->getStatusVarCounters()->updated_row_count);
 
424
      push(status_vars->getStatusVarCounters()->deleted_row_count);
 
425
      push(status_vars->getStatusVarCounters()->inserted_row_count);
 
426
 
418
427
      ++record_number;
419
428
      return true;
420
429
    }