From 604e0535d770d5608a492d04d3b0255bfb929287 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Mar 2006 18:11:07 +0100 Subject: Bug#18280 (RBR: Extreneous maps when writing to general_log and slow_log): Filter out replication general_log and slow_log entirely from binary log. Caching result of table share-specific tests. mysql-test/r/binlog_row_drop_tmp_tbl.result: Result change mysql-test/r/rpl_row_log.result: Result change mysql-test/r/rpl_row_log_innodb.result: Result change mysql-test/r/rpl_row_max_relay_size.result: Result change sql/handler.cc: Refactoring code to support filtering many tables. Filtering out mysql.general_log and mysql.slow_log from binary log. Caching result from table share-specific tests. sql/sql_class.cc: Correcting comment sql/sql_parse.cc: Using binlog_query() instead of constructing Query_log_events sql/table.cc: Adding variable to cache table check parts for row-based logging. sql/table.h: Adding variable to cache table check parts for row-based logging. --- sql/table.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sql/table.h') diff --git a/sql/table.h b/sql/table.h index 688154dd8fc..736e4509cd8 100644 --- a/sql/table.h +++ b/sql/table.h @@ -191,6 +191,15 @@ typedef struct st_table_share bool waiting_on_cond; /* Protection against free */ ulong table_map_id; /* for row-based replication */ ulonglong table_map_version; + + /* + Cache for row-based replication table share checks that does not + need to be repeated. Possible values are: -1 when cache value is + not calculated yet, 0 when table *shall not* be replicated, 1 when + table *may* be replicated. + */ + int cached_row_logging_check; + /* TRUE if this is a system table like 'mysql.proc', which we want to be able to open and lock even when we already have some tables open and -- cgit v1.2.1