[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] add thd local variables "column pruning" and "expression".

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:29:27 JST 2012


Tetsuro IKEDA	2009-08-19 16:00:29 +0900 (Wed, 19 Aug 2009)

  New Revision: 89b16cd33951707c787cd3e9f0bbacaa8b204bbe
  https://github.com/mroonga/mroonga/commit/89b16cd33951707c787cd3e9f0bbacaa8b204bbe

  Log:
    add thd local variables "column pruning" and "expression".

  Modified files:
    ha_groonga.cc
    ha_groonga.h

  Modified: ha_groonga.cc (+26 -1)
===================================================================
--- ha_groonga.cc    2009-08-18 19:31:06 +0900 (1032681)
+++ ha_groonga.cc    2009-08-19 16:00:29 +0900 (c4edba7)
@@ -17,6 +17,24 @@ extern "C" {
 
 #include "ha_groonga.h"
 
+static MYSQL_THDVAR_BOOL(
+                         column_pruning,
+                         PLUGIN_VAR_OPCMDARG | PLUGIN_VAR_THDLOCAL,
+                         "enable column pruning.",
+                         NULL,
+                         NULL,
+                         TRUE
+                         );
+  
+static MYSQL_THDVAR_BOOL(
+                         expression,
+                         PLUGIN_VAR_OPCMDARG | PLUGIN_VAR_THDLOCAL,
+                         "enable expression.",
+                         NULL,
+                         NULL,
+                         TRUE
+                         );
+
 MRN_CHARSET_MAP mrn_charset_map[] = {
   {"utf8", GRN_ENC_UTF8},
   {"cp932", GRN_ENC_SJIS},
@@ -134,6 +152,13 @@ int mrn_plugin_deinit(void *p)
 struct st_mysql_storage_engine storage_engine_structure =
 { MYSQL_HANDLERTON_INTERFACE_VERSION };
 
+struct st_mysql_sys_var  *mrn_system_variables[] =
+{
+  MYSQL_SYSVAR(column_pruning),
+  MYSQL_SYSVAR(expression),
+  NULL
+};
+
 mysql_declare_plugin(mroonga)
 {
   MYSQL_STORAGE_ENGINE_PLUGIN,
@@ -146,7 +171,7 @@ mysql_declare_plugin(mroonga)
   mrn_plugin_deinit,
   0x0001,
   NULL,
-  NULL,
+  mrn_system_variables,
   NULL
 }
 mysql_declare_plugin_end;

  Modified: ha_groonga.h (+1 -0)
===================================================================
--- ha_groonga.h    2009-08-18 19:31:06 +0900 (6524804)
+++ ha_groonga.h    2009-08-19 16:00:29 +0900 (af845a4)
@@ -29,6 +29,7 @@ typedef struct _mrn_cond
   int order_list_size;
 } mrn_cond;
 
+
 /* handler class */
 class ha_groonga: public handler
 {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index