diff options
author | Alfranio Correia <alfranio.correia@sun.com> | 2009-09-29 15:27:12 +0100 |
---|---|---|
committer | Alfranio Correia <alfranio.correia@sun.com> | 2009-09-29 15:27:12 +0100 |
commit | 4e0cb6dbb7da3a8e98f6050779206d65f3096f47 (patch) | |
tree | 843223e93a47492e606ba45437990affb3529d89 /sql/set_var.cc | |
parent | 63278c561cd6b24a622cab9e2674dd272b24f061 (diff) | |
download | mariadb-git-4e0cb6dbb7da3a8e98f6050779206d65f3096f47.tar.gz |
BUG#35542 Add option to sync master and relay log to disk after every event
BUG#31665 sync_binlog should cause relay logs to be synchronized
NOTE: Backporting the patch to next-mr.
Add sync_relay_log option to server, this option works for relay log
the same as option sync_binlog for binlog. This option also synchronize
master info to disk when set to non-zero value.
Original patches from Sinisa and Mark, with some modifications
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index 5025356230c..f2b5201cf8b 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -1534,6 +1534,23 @@ static bool get_unsigned(THD *thd, set_var *var, ulonglong user_max, } +bool sys_var_int_ptr::check(THD *thd, set_var *var) +{ + var->save_result.ulong_value= (ulong) var->value->val_int(); + return 0; +} + +bool sys_var_int_ptr::update(THD *thd, set_var *var) +{ + *value= (uint) var->save_result.ulong_value; + return 0; +} + +void sys_var_int_ptr::set_default(THD *thd, enum_var_type type) +{ + *value= (uint) option_limits->def_value; +} + sys_var_long_ptr:: sys_var_long_ptr(sys_var_chain *chain, const char *name_arg, ulong *value_ptr_arg, sys_after_update_func after_update_arg) |