~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/logging_stats.cc

Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 * 
85
85
 */
86
86
 
87
 
#include <config.h>
 
87
#include "config.h"
88
88
#include "user_commands.h"
89
89
#include "status_vars.h"
90
90
#include "global_stats.h"
128
128
void LoggingStats::updateCurrentScoreboard(ScoreboardSlot *scoreboard_slot,
129
129
                                           Session *session)
130
130
{
131
 
  enum_sql_command sql_command= session->getLex()->sql_command;
 
131
  enum_sql_command sql_command= session->lex->sql_command;
132
132
 
133
133
  scoreboard_slot->getUserCommands()->logCommand(sql_command);
134
134
 
370
370
{
371
371
  context("max-user-count",
372
372
          po::value<max_user_count_constraint>(&sysvar_logging_stats_max_user_count)->default_value(500),
373
 
          _("Max number of users that will be logged"));
 
373
          N_("Max number of users that will be logged"));
374
374
  context("bucket-count",
375
375
          po::value<bucket_count_constraint>(&sysvar_logging_stats_bucket_count)->default_value(10),
376
 
          _("Max number of range locks to use for Scoreboard"));
 
376
          N_("Max number of range locks to use for Scoreboard"));
377
377
  context("scoreboard-size",
378
378
          po::value<scoreboard_size_constraint>(&sysvar_logging_stats_scoreboard_size)->default_value(2000),
379
 
          _("Max number of concurrent sessions that will be logged"));
380
 
  context("disable", _("Enable Logging Statistics Collection"));
 
379
          N_("Max number of concurrent sessions that will be logged"));
 
380
  context("disable", N_("Enable Logging Statistics Collection"));
381
381
}
382
382
 
383
383
DRIZZLE_DECLARE_PLUGIN
389
389
  N_("User Statistics as DATA_DICTIONARY tables"),
390
390
  PLUGIN_LICENSE_BSD,
391
391
  init,   /* Plugin Init      */
392
 
  NULL, /* depends */
 
392
  NULL, /* system variables */
393
393
  init_options    /* config options   */
394
394
}
395
395
DRIZZLE_DECLARE_PLUGIN_END;