~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/info_schema/info_schema_methods.cc

  • Committer: Eric Day
  • Date: 2009-08-06 07:14:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1131.
  • Revision ID: eday@oddments.org-20090806071437-c3baqgtvsdxp1l1a
Renamed Protocol to Client, cleaned up some unnecessary methods along the way.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <drizzled/show.h>
29
29
#include <drizzled/tztime.h>
30
30
#include <drizzled/sql_base.h>
 
31
#include <drizzled/plugin/client.h>
31
32
 
32
33
#include "info_schema_methods.h"
33
34
 
610
611
      struct st_my_thread_var *mysys_var;
611
612
      const char *val;
612
613
 
613
 
      if (! tmp->protocol->isConnected())
 
614
      if (! tmp->client->isConnected())
614
615
        continue;
615
616
 
616
617
      table->restoreRecordAsDefault();
640
641
      table->field[5]->store((uint32_t)(tmp->start_time ?
641
642
                                      now - tmp->start_time : 0), true);
642
643
      /* STATE */
643
 
      val= (char*) (tmp->protocol->isWriting() ?
 
644
      val= (char*) (tmp->client->isWriting() ?
644
645
                    "Writing to net" :
645
 
                    tmp->protocol->isReading() ?
 
646
                    tmp->client->isReading() ?
646
647
                    (tmp->command == COM_SLEEP ?
647
648
                     NULL : "Reading from net") :
648
649
                    tmp->get_proc_info() ? tmp->get_proc_info() :