summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorunknown <tulin@build.mysql.com>2004-09-09 10:41:33 +0200
committerunknown <tulin@build.mysql.com>2004-09-09 10:41:33 +0200
commit9106686846cb87de91afe5068b29caa72e2e537b (patch)
tree08926077476c0cd8f62d6215c6a9dc9c61d8f1bf /sql/log.cc
parentc59228f85c881f31e3fa017d15a7c7fba8ab708a (diff)
parent1460e454d066c928de8f95870c72a2515d8bbc79 (diff)
downloadmariadb-git-9106686846cb87de91afe5068b29caa72e2e537b.tar.gz
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into build.mysql.com:/users/tulin/mysql-4.1-ndb-merge sql/ha_ndbcluster.cc: Auto merged sql/handler.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_table.cc: Auto merged
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc36
1 files changed, 7 insertions, 29 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 08c1b31ed0d..79934451b09 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -1426,15 +1426,6 @@ COLLATION_CONNECTION=%u,COLLATION_DATABASE=%u,COLLATION_SERVER=%u",
if (e.write(file))
goto err;
}
-#if MYSQL_VERSION_ID < 40100
- if (thd->variables.convert_set)
- {
- Query_log_event e(thd, "SET CHARACTER SET DEFAULT", 25, 0);
- e.set_log_pos(this);
- if (e.write(file))
- goto err;
- }
-#endif
}
/*
@@ -1932,19 +1923,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)
-{
- thd_arg->options&= ~OPTION_BIN_LOG;
-}
-
-
-Disable_binlog::~Disable_binlog()
-{
- thd->options= save_options;
-}
-
-
/*
Check if a string is a valid number
@@ -2009,14 +1987,14 @@ void print_buffer_to_file(enum loglevel level, const char *buffer)
localtime_r(&skr, &tm_tmp);
start=&tm_tmp;
fprintf(stderr, "%02d%02d%02d %2d:%02d:%02d [%s] %s\n",
- start->tm_year % 100,
- start->tm_mon+1,
- start->tm_mday,
- start->tm_hour,
- start->tm_min,
- start->tm_sec,
+ start->tm_year % 100,
+ start->tm_mon+1,
+ start->tm_mday,
+ start->tm_hour,
+ start->tm_min,
+ start->tm_sec,
(level == ERROR_LEVEL ? "ERROR" : level == WARNING_LEVEL ?
- "WARNING" : "INFORMATION"),
+ "WARNING" : "NOTE"),
buffer);
fflush(stderr);