summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
authormats@mysql.com <>2006-02-28 10:06:58 +0100
committermats@mysql.com <>2006-02-28 10:06:58 +0100
commit1e66bc0d160a2265e00c76ff369caa9b97e2a9bb (patch)
treecb6ade436bf4b0cf01026964400f9aa8fb2f4ff9 /sql/log.h
parentf0f8795bebc90843e837cda4249d2872a21b3960 (diff)
parent13a61982a99ece6b5c01e5c3d29e6e93e4bb20f9 (diff)
downloadmariadb-git-1e66bc0d160a2265e00c76ff369caa9b97e2a9bb.tar.gz
Merge mysql.com:/home/bkroot/mysql-5.1-new
into mysql.com:/home/bk/w3023-mysql-5.1-new
Diffstat (limited to 'sql/log.h')
-rw-r--r--sql/log.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/sql/log.h b/sql/log.h
index 8a83e7b66d0..391ef54dff7 100644
--- a/sql/log.h
+++ b/sql/log.h
@@ -203,9 +203,11 @@ class MYSQL_LOG: public TC_LOG
bool no_auto_events;
friend class Log_event;
-public:
ulonglong m_table_map_version;
+ int write_to_file(IO_CACHE *cache);
+
+public:
/*
These describe the log's format. This is used only for relay logs.
_for_exec is used by the SQL thread, _for_queue by the I/O thread. It's
@@ -232,9 +234,12 @@ public:
#if !defined(MYSQL_CLIENT)
bool is_table_mapped(TABLE *table) const
{
- return table->s->table_map_version == m_table_map_version;
+ return table->s->table_map_version == table_map_version();
}
+ ulonglong table_map_version() const { return m_table_map_version; }
+ void update_table_map_version() { ++m_table_map_version; }
+
int flush_and_set_pending_rows_event(THD *thd, Rows_log_event* event);
#endif /* !defined(MYSQL_CLIENT) */
@@ -302,8 +307,6 @@ public:
bool write(Log_event* event_info); // binary log write
bool write(THD *thd, IO_CACHE *cache, Log_event *commit_event);
- bool write_table_map(THD *thd, IO_CACHE *cache, TABLE *table, bool is_trans);
-
void start_union_events(THD *thd);
void stop_union_events(THD *thd);
bool is_query_in_union(THD *thd, query_id_t query_id_param);