~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Brian Aker
  • Date: 2010-12-31 21:25:11 UTC
  • mto: (2045.1.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2046.
  • Revision ID: brian@tangent.org-20101231212511-bhlyaw71ij4v15au
Make more time usage private.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
    */
242
242
    uint64_t t_mark= session->getCurrentTimestamp(false);
243
243
 
244
 
    if ((t_mark - session->start_utime) < (sysvar_logging_query_threshold_slow.get()))
 
244
    if (session->getElapsedTime() < (sysvar_logging_query_threshold_slow.get()))
245
245
      return false;
246
246
 
247
247
    Session::QueryString query_string(session->getQueryString());
273
273
              % qs
274
274
              % command_name[session->command].str
275
275
              % (t_mark - session->getConnectMicroseconds())
276
 
              % (t_mark - session->start_utime)
 
276
              % session->getElapsedTime()
277
277
              % (t_mark - session->utime_after_lock)
278
278
              % session->sent_row_count
279
279
              % session->examined_row_count