mirror of
https://github.com/MariaDB/server.git
synced 2026-05-01 12:45:41 +02:00
Merge mysql.com:/home/bkroot/mysql-5.1-new
into mysql.com:/home/bk/w3023-mysql-5.1-new configure.in: Auto merged BitKeeper/deleted/.del-sp_notembedded.test: Auto merged mysql-test/extra/binlog_tests/binlog.test: Auto merged mysql-test/extra/binlog_tests/blackhole.test: Auto merged mysql-test/r/binlog_stm_ctype_cp932.result: Auto merged mysql-test/t/sp.test: Auto merged scripts/mysql_fix_privilege_tables.sql: Auto merged sql/ha_ndbcluster_binlog.cc: Auto merged sql/handler.cc: Auto merged sql/handler.h: Auto merged sql/log.h: Auto merged sql/log_event.h: Auto merged sql/mysql_priv.h: Auto merged sql/opt_range.cc: Auto merged sql/sql_base.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_update.cc: Auto merged sql/table.h: Auto merged
This commit is contained in:
commit
4e31551b92
72 changed files with 1276 additions and 1003 deletions
11
sql/log.h
11
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue