Navigation Menu

Skip to content

Commit

Permalink
rename system variables s/column_pruning/use_column_pruning/g and s/e…
Browse files Browse the repository at this point in the history
…xpression/use_cond_push/g.
  • Loading branch information
Tetsuro IKEDA committed Aug 19, 2009
1 parent 65113b6 commit 5859e57
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ha_groonga.cc
Expand Up @@ -18,18 +18,18 @@ extern "C" {
#include "ha_groonga.h"

static MYSQL_THDVAR_BOOL(
column_pruning,
use_column_pruning,
PLUGIN_VAR_OPCMDARG | PLUGIN_VAR_THDLOCAL,
"enable column pruning.",
"use column pruning.",
NULL,
NULL,
TRUE
);

static MYSQL_THDVAR_BOOL(
expression,
use_cond_push,
PLUGIN_VAR_OPCMDARG | PLUGIN_VAR_THDLOCAL,
"enable expression.",
"use cond_push and groonga expression.",
NULL,
NULL,
TRUE
Expand Down Expand Up @@ -91,8 +91,8 @@ struct st_mysql_show_var mrn_status_variables[] =

struct st_mysql_sys_var *mrn_system_variables[] =
{
MYSQL_SYSVAR(column_pruning),
MYSQL_SYSVAR(expression),
MYSQL_SYSVAR(use_column_pruning),
MYSQL_SYSVAR(use_cond_push),
NULL
};

Expand Down Expand Up @@ -341,14 +341,14 @@ int ha_groonga::rnd_init(bool scan)
{
MRN_HTRACE;
int i, used=0, n_columns, alloc_size;
char column_pruning = THDVAR(table->in_use, column_pruning);
char use_column_pruning = THDVAR(table->in_use, use_column_pruning);
n_columns = minfo->n_columns;
alloc_size = n_columns / 8 + 1;
uchar* column_map = (uchar*) malloc(alloc_size);
memset(column_map,0,alloc_size);
for (i=0; i < n_columns; i++)
{
if (column_pruning == 0 ||
if (use_column_pruning == 0 ||
bitmap_is_set(table->read_set, i) ||
bitmap_is_set(table->write_set, i))
{
Expand Down

0 comments on commit 5859e57

Please sign in to comment.