~posulliv/drizzle/memcached_applier

« back to all changes in this revision

Viewing changes to plugin/logging_syslog/logging_syslog.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:
123
123
    if (session->examined_row_count < sysvar_logging_syslog_threshold_big_examined)
124
124
      return false;
125
125
  
126
 
    /* TODO, looks like connect_utime isnt being set in the session
127
 
       object.  We could store the time this plugin was loaded, but that
128
 
       would just be a dumb workaround. */
129
126
    /* TODO, the session object should have a "utime command completed"
130
127
       inside itself, so be more accurate, and so this doesnt have to
131
128
       keep calling current_utime, which can be slow */
161
158
           qyl, qys,
162
159
           (int) command_name[session->command].length,
163
160
           command_name[session->command].str,
164
 
           (unsigned long long) (t_mark - session->connect_utime),
 
161
           (unsigned long long) (t_mark - session->getConnectMicroseconds()),
165
162
           (unsigned long long) (t_mark - session->start_utime),
166
163
           (unsigned long long) (t_mark - session->utime_after_lock),
167
164
           (unsigned long) session->sent_row_count,