~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sys_var.cc

  • Committer: Monty Taylor
  • Date: 2010-10-25 20:36:07 UTC
  • mto: (1879.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1880.
  • Revision ID: mordred@inaugust.com-20101025203607-0xkv1xu0salvc6zd
Split out show_type into its own header and made sys_var work through
plugin.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
#include "config.h"
47
47
#include "drizzled/option.h"
48
 
#include <drizzled/error.h>
49
 
#include <drizzled/gettext.h>
50
 
#include <drizzled/tztime.h>
51
 
#include <drizzled/data_home.h>
52
 
#include <drizzled/set_var.h>
53
 
#include <drizzled/session.h>
54
 
#include <drizzled/sql_base.h>
55
 
#include <drizzled/lock.h>
56
 
#include <drizzled/item/uint.h>
57
 
#include <drizzled/item/null.h>
58
 
#include <drizzled/item/float.h>
59
 
#include <drizzled/plugin.h>
 
48
#include "drizzled/error.h"
 
49
#include "drizzled/gettext.h"
 
50
#include "drizzled/tztime.h"
 
51
#include "drizzled/data_home.h"
 
52
#include "drizzled/set_var.h"
 
53
#include "drizzled/session.h"
 
54
#include "drizzled/sql_base.h"
 
55
#include "drizzled/lock.h"
 
56
#include "drizzled/item/uint.h"
 
57
#include "drizzled/item/null.h"
 
58
#include "drizzled/item/float.h"
 
59
#include "drizzled/item/string.h"
 
60
#include "drizzled/plugin.h"
60
61
#include "drizzled/version.h"
61
62
#include "drizzled/strfunc.h"
62
63
#include "drizzled/internal/m_string.h"
129
130
*/
130
131
static sys_var_session_uint64_t
131
132
sys_auto_increment_increment("auto_increment_increment",
132
 
                             &system_variables::auto_increment_increment);
 
133
                             &drizzle_system_variables::auto_increment_increment);
133
134
static sys_var_session_uint64_t
134
135
sys_auto_increment_offset("auto_increment_offset",
135
 
                          &system_variables::auto_increment_offset);
 
136
                          &drizzle_system_variables::auto_increment_offset);
136
137
 
137
138
static sys_var_fs_path sys_basedir("basedir", basedir);
138
139
static sys_var_fs_path sys_pid_file("pid_file", pid_file);
143
144
static sys_var_constrained_value<uint32_t> sys_back_log("back_log", back_log);
144
145
 
145
146
static sys_var_session_uint64_t sys_bulk_insert_buff_size("bulk_insert_buffer_size",
146
 
                                                          &system_variables::bulk_insert_buff_size);
 
147
                                                          &drizzle_system_variables::bulk_insert_buff_size);
147
148
static sys_var_session_uint32_t sys_completion_type("completion_type",
148
 
                                                    &system_variables::completion_type,
 
149
                                                    &drizzle_system_variables::completion_type,
149
150
                                                    check_completion_type,
150
151
                                                    fix_completion_type);
151
152
static sys_var_collation_sv
152
 
sys_collation_server("collation_server", &system_variables::collation_server, &default_charset_info);
 
153
sys_collation_server("collation_server", &drizzle_system_variables::collation_server, &default_charset_info);
153
154
static sys_var_fs_path       sys_datadir("datadir", getDataHome());
154
155
 
155
156
static sys_var_session_uint64_t sys_join_buffer_size("join_buffer_size",
156
 
                                                     &system_variables::join_buff_size);
 
157
                                                     &drizzle_system_variables::join_buff_size);
157
158
static sys_var_session_uint32_t sys_max_allowed_packet("max_allowed_packet",
158
 
                                                       &system_variables::max_allowed_packet);
 
159
                                                       &drizzle_system_variables::max_allowed_packet);
159
160
static sys_var_uint64_t_ptr     sys_max_connect_errors("max_connect_errors",
160
161
                                               &max_connect_errors);
161
162
static sys_var_session_uint64_t sys_max_error_count("max_error_count",
162
 
                                                  &system_variables::max_error_count);
 
163
                                                  &drizzle_system_variables::max_error_count);
163
164
static sys_var_session_uint64_t sys_max_heap_table_size("max_heap_table_size",
164
 
                                                        &system_variables::max_heap_table_size);
 
165
                                                        &drizzle_system_variables::max_heap_table_size);
165
166
static sys_var_session_uint64_t sys_pseudo_thread_id("pseudo_thread_id",
166
 
                                              &system_variables::pseudo_thread_id,
 
167
                                              &drizzle_system_variables::pseudo_thread_id,
167
168
                                              0, check_pseudo_thread_id);
168
169
static sys_var_session_ha_rows  sys_max_join_size("max_join_size",
169
 
                                                  &system_variables::max_join_size,
 
170
                                                  &drizzle_system_variables::max_join_size,
170
171
                                                  fix_max_join_size);
171
172
static sys_var_session_uint64_t sys_max_seeks_for_key("max_seeks_for_key",
172
 
                                                      &system_variables::max_seeks_for_key);
 
173
                                                      &drizzle_system_variables::max_seeks_for_key);
173
174
static sys_var_session_uint64_t   sys_max_length_for_sort_data("max_length_for_sort_data",
174
 
                                                               &system_variables::max_length_for_sort_data);
 
175
                                                               &drizzle_system_variables::max_length_for_sort_data);
175
176
static sys_var_session_size_t   sys_max_sort_length("max_sort_length",
176
 
                                                    &system_variables::max_sort_length);
 
177
                                                    &drizzle_system_variables::max_sort_length);
177
178
static sys_var_uint64_t_ptr     sys_max_write_lock_count("max_write_lock_count",
178
179
                                                 &max_write_lock_count);
179
180
static sys_var_session_uint64_t sys_min_examined_row_limit("min_examined_row_limit",
180
 
                                                           &system_variables::min_examined_row_limit);
 
181
                                                           &drizzle_system_variables::min_examined_row_limit);
181
182
 
182
183
/* these two cannot be static */
183
184
static sys_var_session_bool sys_optimizer_prune_level("optimizer_prune_level",
184
 
                                                      &system_variables::optimizer_prune_level);
 
185
                                                      &drizzle_system_variables::optimizer_prune_level);
185
186
static sys_var_session_uint32_t sys_optimizer_search_depth("optimizer_search_depth",
186
 
                                                           &system_variables::optimizer_search_depth);
 
187
                                                           &drizzle_system_variables::optimizer_search_depth);
187
188
 
188
189
static sys_var_session_uint64_t sys_preload_buff_size("preload_buffer_size",
189
 
                                                      &system_variables::preload_buff_size);
 
190
                                                      &drizzle_system_variables::preload_buff_size);
190
191
static sys_var_session_uint32_t sys_read_buff_size("read_buffer_size",
191
 
                                                   &system_variables::read_buff_size);
 
192
                                                   &drizzle_system_variables::read_buff_size);
192
193
static sys_var_session_uint32_t sys_read_rnd_buff_size("read_rnd_buffer_size",
193
 
                                                       &system_variables::read_rnd_buff_size);
 
194
                                                       &drizzle_system_variables::read_rnd_buff_size);
194
195
static sys_var_session_uint32_t sys_div_precincrement("div_precision_increment",
195
 
                                                      &system_variables::div_precincrement);
 
196
                                                      &drizzle_system_variables::div_precincrement);
196
197
 
197
198
static sys_var_session_size_t   sys_range_alloc_block_size("range_alloc_block_size",
198
 
                                                           &system_variables::range_alloc_block_size);
 
199
                                                           &drizzle_system_variables::range_alloc_block_size);
199
200
static sys_var_session_uint32_t sys_query_alloc_block_size("query_alloc_block_size",
200
 
                                                           &system_variables::query_alloc_block_size,
 
201
                                                           &drizzle_system_variables::query_alloc_block_size,
201
202
                                                           NULL, fix_session_mem_root);
202
203
static sys_var_session_uint32_t sys_query_prealloc_size("query_prealloc_size",
203
 
                                                        &system_variables::query_prealloc_size,
 
204
                                                        &drizzle_system_variables::query_prealloc_size,
204
205
                                                        NULL, fix_session_mem_root);
205
206
static sys_var_readonly sys_tmpdir("tmpdir", OPT_GLOBAL, SHOW_CHAR, get_tmpdir);
206
207
 
214
215
                                           fix_server_id);
215
216
 
216
217
static sys_var_session_size_t   sys_sort_buffer("sort_buffer_size",
217
 
                                                &system_variables::sortbuff_size);
 
218
                                                &drizzle_system_variables::sortbuff_size);
218
219
 
219
220
static sys_var_session_size_t sys_transaction_message_threshold("transaction_message_threshold",
220
 
                                                                &system_variables::transaction_message_threshold);
 
221
                                                                &drizzle_system_variables::transaction_message_threshold);
221
222
 
222
223
static sys_var_session_storage_engine sys_storage_engine("storage_engine",
223
 
                                       &system_variables::storage_engine);
 
224
                                       &drizzle_system_variables::storage_engine);
224
225
static sys_var_const_str        sys_system_time_zone("system_time_zone",
225
226
                                             system_time_zone);
226
227
static sys_var_size_t_ptr       sys_table_def_size("table_definition_cache",
230
231
static sys_var_uint64_t_ptr     sys_table_lock_wait_timeout("table_lock_wait_timeout",
231
232
                                                    &table_lock_wait_timeout);
232
233
static sys_var_session_enum     sys_tx_isolation("tx_isolation",
233
 
                                             &system_variables::tx_isolation,
 
234
                                             &drizzle_system_variables::tx_isolation,
234
235
                                             &tx_isolation_typelib,
235
236
                                             fix_tx_isolation,
236
237
                                             check_tx_isolation);
237
238
static sys_var_session_uint64_t sys_tmp_table_size("tmp_table_size",
238
 
                                           &system_variables::tmp_table_size);
 
239
                                           &drizzle_system_variables::tmp_table_size);
239
240
static sys_var_bool_ptr  sys_timed_mutexes("timed_mutexes", &internal::timed_mutexes);
240
241
static sys_var_const_str  sys_version("version", version().c_str());
241
242
 
275
276
/* Local state variables */
276
277
 
277
278
static sys_var_session_ha_rows  sys_select_limit("sql_select_limit",
278
 
                                                 &system_variables::select_limit);
 
279
                                                 &drizzle_system_variables::select_limit);
279
280
static sys_var_timestamp sys_timestamp("timestamp");
280
281
static sys_var_last_insert_id
281
282
sys_last_insert_id("last_insert_id");
309
310
                                          get_warning_count);
310
311
 
311
312
sys_var_session_uint64_t sys_group_concat_max_len("group_concat_max_len",
312
 
                                                  &system_variables::group_concat_max_len);
 
313
                                                  &drizzle_system_variables::group_concat_max_len);
313
314
 
314
315
sys_var_session_time_zone sys_time_zone("time_zone");
315
316