summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2004-09-06 22:47:26 +0200
committerunknown <guilhem@mysql.com>2004-09-06 22:47:26 +0200
commitea971987fcc8479fdd3fbf185efedd8ed7ccbfd6 (patch)
treedd04dee365b69fd79dc1543b63ac022f09b688e7 /sql/sql_class.h
parent0d34c63536031ee2e104ec8cb94e5a1a3dd68ab4 (diff)
downloadmariadb-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/sql_class.h')
-rw-r--r--sql/sql_class.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index 30947041b7d..d362a90b7df 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -639,27 +639,6 @@ public:
#define SYSTEM_THREAD_SLAVE_SQL 4
/*
- Disables binary logging for one thread, and resets it back to what it was
- before being disabled.
- Some functions (like the internal mysql_create_table() when it's called by
- mysql_alter_table()) must NOT write to the binlog (binlogging is done at the
- at a later stage of the command already, and must be, for locking reasons);
- so we internally disable it temporarily by creating the Disable_binlog
- object and reset the state by destroying the object (don't forget that! or
- write code so that the object gets automatically destroyed when leaving a
- block, see example in sql_table.cc).
-*/
-class Disable_binlog {
-private:
- THD *thd;
- ulong save_options;
- ulong save_master_access;
-public:
- Disable_binlog(THD *thd_arg);
- ~Disable_binlog();
-};
-
-/*
Used to hold information about file and file structure in exchainge
via non-DB file (...INTO OUTFILE..., ...LOAD DATA...)
*/