~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Olaf van der Spek
  • Date: 2011-04-08 13:16:30 UTC
  • mto: (2275.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2276.
  • Revision ID: olafvdspek@gmail.com-20110408131630-n74bfuxq2y1ytd1x
Session Times

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
      inside itself, so be more accurate, and so this doesnt have to
240
240
      keep calling current_utime, which can be slow.
241
241
    */
242
 
    uint64_t t_mark= session->getCurrentTimestamp(false);
 
242
    uint64_t t_mark= session->times.getCurrentTimestamp(false);
243
243
 
244
 
    if (session->getElapsedTime() < (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());