summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-12-07 14:08:48 +0200
committermonty@donna.mysql.com <>2000-12-07 14:08:48 +0200
commit87d9388e52a128427481064e21373f8460d6b24f (patch)
tree8a5c9d678d477bb2c3fa95057c9299dcf9560aab /sql/log_event.h
parenta5c75df390e9b67454bd0a04e75583057e9579f7 (diff)
downloadmariadb-git-87d9388e52a128427481064e21373f8460d6b24f.tar.gz
Only write full transactions to binary log
A lot of new functions for BDB tables Fix for DROP DATABASE on windows Default server_id variables
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index b31d444ad21..3d307000b13 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -118,16 +118,18 @@ public:
ulong thread_id;
#if !defined(MYSQL_CLIENT)
THD* thd;
- Query_log_event(THD* thd_arg, const char* query_arg):
- Log_event(thd_arg->start_time,0,0,thd_arg->server_id), data_buf(0),
+ bool cache_stmt;
+ Query_log_event(THD* thd_arg, const char* query_arg, bool using_trans=0):
+ Log_event(thd_arg->start_time,0,1,thd_arg->server_id), data_buf(0),
query(query_arg), db(thd_arg->db), q_len(thd_arg->query_length),
error_code(thd_arg->net.last_errno),
- thread_id(thd_arg->thread_id), thd(thd_arg)
+ thread_id(thd_arg->thread_id), thd(thd_arg),
+ cache_stmt(using_trans &&
+ (thd_arg->options & (OPTION_NOT_AUTO_COMMIT | OPTION_BEGIN)))
{
time_t end_time;
time(&end_time);
exec_time = (ulong) (end_time - thd->start_time);
- valid_exec_time = 1;
db_len = (db) ? (uint32) strlen(db) : 0;
}
#endif