~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.cc

Extracted the LOAD command into its own class and implementation files.
Removed the corresponding case label from the switch statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
    if (!gearman_client_ok)
226
226
        return false;
227
227
  
 
228
    /* TODO, looks like connect_utime isnt being set in the session
 
229
       object.  We could store the time this plugin was loaded, but that
 
230
       would just be a dumb workaround. */
228
231
    /* TODO, the session object should have a "utime command completed"
229
232
       inside itself, so be more accurate, and so this doesnt have to
230
233
       keep calling current_utime, which can be slow */
260
263
               (int)command_name[session->command].length,
261
264
               command_name[session->command].str,
262
265
               // counters are at end, to make it easier to add more
263
 
               (t_mark - session->getConnectMicroseconds()),
 
266
               (t_mark - session->connect_utime),
264
267
               (t_mark - session->start_utime),
265
268
               (t_mark - session->utime_after_lock),
266
269
               session->sent_row_count,