diff options
author | unknown <guilhem@mysql.com> | 2004-09-06 22:47:26 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-09-06 22:47:26 +0200 |
commit | ea971987fcc8479fdd3fbf185efedd8ed7ccbfd6 (patch) | |
tree | dd04dee365b69fd79dc1543b63ac022f09b688e7 /sql/log.cc | |
parent | 0d34c63536031ee2e104ec8cb94e5a1a3dd68ab4 (diff) | |
download | mariadb-git-ea971987fcc8479fdd3fbf185efedd8ed7ccbfd6.tar.gz |
Replacing class Disable_binlog by macros. Patch already approved by Monty.
sql/log.cc:
removing unneeded class Disable_binlog
sql/sql_class.h:
removing unneeded class Disable_binlog
sql/sql_table.cc:
As discussed, class Disable_binlog is removed and replaced by macros.
Diffstat (limited to 'sql/log.cc')
-rw-r--r-- | sql/log.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sql/log.cc b/sql/log.cc index 55ef2e72960..a864943edf8 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -1682,22 +1682,6 @@ void MYSQL_LOG::set_max_size(ulong max_size_arg) } -Disable_binlog::Disable_binlog(THD *thd_arg) : - thd(thd_arg), - save_options(thd_arg->options), save_master_access(thd_arg->master_access) -{ - thd_arg->options&= ~OPTION_BIN_LOG; - thd_arg->master_access|= SUPER_ACL; // unneeded in 4.1 -}; - - -Disable_binlog::~Disable_binlog() -{ - thd->options= save_options; - thd->master_access= save_master_access; -} - - /* Check if a string is a valid number |