~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/status_helper.cc

  • Committer: Brian Aker
  • Date: 2010-08-09 16:50:51 UTC
  • mto: (1698.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1699.
  • Revision ID: brian@gaz-20100809165051-wd7cjrnjn65b3zdc
Use local key_Cache, global now goes away.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
static st_show_var_func_container show_connection_count_cont_new= { &show_connection_count_new };
61
61
 
62
 
extern drizzled::KEY_CACHE dflt_key_cache_var, *dflt_key_cache;
63
 
 
64
62
string StatusHelper::fillHelper(system_status_var *status_var, char *value, SHOW_TYPE show_type)
65
63
{
66
64
  ostringstream oss;
120
118
      break;
121
119
    }
122
120
  case SHOW_KEY_CACHE_LONG:
123
 
    value= (char*) dflt_key_cache + (unsigned long)value;
124
 
    oss << *(long*) value;
125
 
    return_value= oss.str();
 
121
    value= 0;
126
122
    break;
127
123
  case SHOW_KEY_CACHE_LONGLONG:
128
 
    value= (char*) dflt_key_cache + (unsigned long)value;
129
 
    oss << *(int64_t*) value;
130
 
    return_value= oss.str();
 
124
    value= 0;
131
125
    break;
132
126
  case SHOW_UNDEF:
133
127
    break;                                        // Return empty string