diff options
author | unknown <aelkin@mysql.com> | 2006-03-10 18:31:08 +0200 |
---|---|---|
committer | unknown <aelkin@mysql.com> | 2006-03-10 18:31:08 +0200 |
commit | 326f71754e86c819d07ec9667d69fd42a48c4699 (patch) | |
tree | c91414387d42bcbd8a0e5d40fb38150a8aa2daea /sql/sql_class.h | |
parent | f2094d74cf7997e38efa48f5dc8ce03d9a4474aa (diff) | |
parent | 54715b8bb69a0b212557a3542ae12b38a1fca120 (diff) | |
download | mariadb-git-326f71754e86c819d07ec9667d69fd42a48c4699.tar.gz |
Merge mysql.com:/usr_rh9/home/elkin.rh9/MySQL/BARE/5.1
into mysql.com:/usr_rh9/home/elkin.rh9/MySQL/Merge/5.1
sql/sql_class.h:
Auto merged
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index e987b8867b9..4745fcfdc35 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -742,11 +742,20 @@ public: ulong version; uint current_tablenr; + enum enum_flags { + BACKUPS_AVAIL = (1U << 0) /* There are backups available */ + }; + + /* + Flags with information about the open tables state. + */ + uint state_flags; + /* This constructor serves for creation of Open_tables_state instances which are used as backup storage. */ - Open_tables_state() {}; + Open_tables_state() : state_flags(0U) { } Open_tables_state(ulong version_arg); @@ -760,6 +769,7 @@ public: open_tables= temporary_tables= handler_tables= derived_tables= 0; lock= locked_tables= 0; prelocked_mode= NON_PRELOCKED; + state_flags= 0U; } }; @@ -910,8 +920,9 @@ public: #ifndef MYSQL_CLIENT /* - Public interface to write rows to the binlog + Public interface to write RBR events to the binlog */ + int binlog_write_table_map(TABLE *table, bool is_transactional); int binlog_write_row(TABLE* table, bool is_transactional, MY_BITMAP const* cols, my_size_t colcnt, const byte *buf); @@ -955,6 +966,11 @@ public: int binlog_flush_pending_rows_event(bool stmt_end); void binlog_delete_pending_rows_event(); +private: + uint binlog_table_maps; // Number of table maps currently in the binlog + +public: + #endif #endif /* HAVE_ROW_BASED_REPLICATION */ #ifndef MYSQL_CLIENT @@ -1575,7 +1591,6 @@ class select_create: public select_insert { HA_CREATE_INFO *create_info; MYSQL_LOCK *lock; Field **field; - bool create_table_written; public: select_create (TABLE_LIST *table, HA_CREATE_INFO *create_info_par, @@ -1584,11 +1599,11 @@ public: List<Item> &select_fields,enum_duplicates duplic, bool ignore) :select_insert (NULL, NULL, &select_fields, 0, 0, duplic, ignore), create_table(table), extra_fields(&fields_par),keys(&keys_par), create_info(create_info_par), - lock(0), create_table_written(FALSE) + lock(0) {} int prepare(List<Item> &list, SELECT_LEX_UNIT *u); - void binlog_show_create_table(); + void binlog_show_create_table(TABLE **tables, uint count); void store_values(List<Item> &values); void send_error(uint errcode,const char *err); bool send_eof(); |