1
/* Copyright (C) 2000-2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 2 of the License.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
53
58
#include <storage/myisam/myisam.h>
54
59
#include <drizzled/error.h>
55
60
#include <drizzled/gettext.h>
61
#include <drizzled/tztime.h>
57
63
extern const CHARSET_INFO *character_set_filesystem;
310
316
static sys_var_const_str_ptr sys_secure_file_priv(&vars, "secure_file_priv",
311
317
&opt_secure_file_priv);
312
static sys_var_long_ptr sys_server_id(&vars, "server_id", &server_id, fix_server_id);
318
static sys_var_uint32_t_ptr sys_server_id(&vars, "server_id", &server_id,
313
321
static sys_var_bool_ptr sys_slave_compressed_protocol(&vars, "slave_compressed_protocol",
314
322
&opt_slave_compressed_protocol);
315
323
static sys_var_bool_ptr sys_slave_allow_batching(&vars, "slave_allow_batching",
978
986
pthread_mutex_unlock(guard);
989
bool sys_var_uint32_t_ptr::update(Session *session, set_var *var)
991
uint32_t tmp= var->save_result.uint32_t_value;
992
pthread_mutex_lock(&LOCK_global_system_variables);
994
*value= (uint32_t) fix_unsigned(session, tmp, option_limits);
996
*value= (uint32_t) tmp;
997
pthread_mutex_unlock(&LOCK_global_system_variables);
1002
void sys_var_uint32_t_ptr::set_default(Session *session __attribute__((unused)),
1003
enum_var_type type __attribute__((unused)))
1006
pthread_mutex_lock(&LOCK_global_system_variables);
1007
*value= getopt_ull_limit_value((uint32_t) option_limits->def_value,
1008
option_limits, ¬_used);
1009
pthread_mutex_unlock(&LOCK_global_system_variables);
982
1013
bool sys_var_uint64_t_ptr::update(Session *session, set_var *var)