summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
author <Dao-Gang.Qu@sun.com>2010-01-12 20:07:09 +0800
committer <Dao-Gang.Qu@sun.com>2010-01-12 20:07:09 +0800
commitb805e3d4d6ae5835ec5d6dcafc7ba4e65103f0b2 (patch)
tree81fd0ce6bdc321649671cd1240deb0d5b1248e49 /sql/log.h
parentd866afe56f670d5739112fee01c122584ff60145 (diff)
parente698ae01128fde4f82d4595e67a72cfac09ca125 (diff)
downloadmariadb-git-b805e3d4d6ae5835ec5d6dcafc7ba4e65103f0b2.tar.gz
Manual merge from next-mr.
Diffstat (limited to 'sql/log.h')
-rw-r--r--sql/log.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/sql/log.h b/sql/log.h
index 8df5111d3c2..b585c202410 100644
--- a/sql/log.h
+++ b/sql/log.h
@@ -614,13 +614,13 @@ public:
void init_general_log(uint general_log_printer);
void deactivate_log_handler(THD* thd, uint log_type);
bool activate_log_handler(THD* thd, uint log_type);
- MYSQL_QUERY_LOG *get_slow_log_file_handler()
+ MYSQL_QUERY_LOG *get_slow_log_file_handler() const
{
if (file_log_handler)
return file_log_handler->get_mysql_slow_log();
return NULL;
}
- MYSQL_QUERY_LOG *get_log_file_handler()
+ MYSQL_QUERY_LOG *get_log_file_handler() const
{
if (file_log_handler)
return file_log_handler->get_mysql_log();
@@ -629,19 +629,10 @@ public:
};
enum enum_binlog_format {
- /*
- statement-based except for cases where only row-based can work (UUID()
- etc):
- */
- BINLOG_FORMAT_MIXED= 0,
- BINLOG_FORMAT_STMT= 1, // statement-based
- BINLOG_FORMAT_ROW= 2, // row_based
-/*
- This value is last, after the end of binlog_format_typelib: it has no
- corresponding cell in this typelib. We use this value to be able to know if
- the user has explicitely specified a binlog format at startup or not.
-*/
- BINLOG_FORMAT_UNSPEC= 3
+ BINLOG_FORMAT_MIXED= 0, ///< statement if safe, otherwise row - autodetected
+ BINLOG_FORMAT_STMT= 1, ///< statement-based
+ BINLOG_FORMAT_ROW= 2, ///< row-based
+ BINLOG_FORMAT_UNSPEC=3 ///< thd_binlog_format() returns it when binlog is closed
};
extern TYPELIB binlog_format_typelib;