~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to plugin/logging_query/logging_query.cc

  • Committer: Jay Pipes
  • Date: 2009-08-03 14:23:22 UTC
  • mfrom: (1039.2.68 staging)
  • mto: This revision was merged to the branch mainline in revision 1078.
  • Revision ID: jpipes@serialcoder-20090803142322-1g67h7su9mocg9ig
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
    if (session->examined_row_count < sysvar_logging_query_threshold_big_examined)
256
256
      return false;
257
257
 
258
 
    /* TODO, looks like connect_utime isnt being set in the session
259
 
       object.  We could store the time this plugin was loaded, but that
260
 
       would just be a dumb workaround. */
261
258
    /* TODO, the session object should have a "utime command completed"
262
259
       inside itself, so be more accurate, and so this doesnt have to
263
260
       keep calling current_utime, which can be slow */
287
284
    msgbuf_len=
288
285
      snprintf(msgbuf, MAX_MSG_LEN,
289
286
               "%"PRIu64",%"PRIu64",%"PRIu64",\"%.*s\",\"%s\",\"%.*s\","
290
 
               "%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64
 
287
               "%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64",%"PRIu64","
291
288
               "%"PRIu32",%"PRIu32"\n",
292
289
               t_mark,
293
290
               session->thread_id,
302
299
               (int)command_name[session->command].length,
303
300
               command_name[session->command].str,
304
301
               // counters are at end, to make it easier to add more
305
 
               (t_mark - session->connect_utime),
 
302
               (t_mark - session->getConnectMicroseconds()),
306
303
               (t_mark - session->start_utime),
307
304
               (t_mark - session->utime_after_lock),
308
305
               session->sent_row_count,