mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge romeo.(none):/home/bkroot/mysql-5.1-new-rpl
into romeo.(none):/home/bk/b23171-mysql-5.1-new-rpl mysql-test/r/rpl_row_tabledefs_2myisam.result: Auto merged mysql-test/r/rpl_row_tabledefs_3innodb.result: Auto merged sql/rpl_rli.cc: Auto merged sql/rpl_rli.h: Auto merged sql/rpl_utility.cc: Auto merged sql/rpl_utility.h: Auto merged sql/slave.h: Auto merged sql/log.cc: Manual merge sql/log_event.cc: Manual merge sql/log_event.h: Manual merge sql/slave.cc: Manual merge sql/sql_binlog.cc: Manual merge
This commit is contained in:
@@ -29,14 +29,15 @@ int init_strvar_from_file(char *var, int max_size, IO_CACHE *f,
|
||||
|
||||
|
||||
st_relay_log_info::st_relay_log_info()
|
||||
:no_storage(FALSE), info_fd(-1), cur_log_fd(-1), save_temporary_tables(0),
|
||||
:no_storage(FALSE), replicate_same_server_id(::replicate_same_server_id),
|
||||
info_fd(-1), cur_log_fd(-1), save_temporary_tables(0),
|
||||
cur_log_old_open_count(0), group_master_log_pos(0), log_space_total(0),
|
||||
ignore_log_space_limit(0), last_master_timestamp(0), slave_skip_counter(0),
|
||||
abort_pos_wait(0), slave_run_id(0), sql_thd(0), last_slave_errno(0),
|
||||
inited(0), abort_slave(0), slave_running(0), until_condition(UNTIL_NONE),
|
||||
until_log_pos(0), retried_trans(0),
|
||||
tables_to_lock(0), tables_to_lock_count(0),
|
||||
unsafe_to_stop_at(0)
|
||||
last_event_start_time(0)
|
||||
{
|
||||
DBUG_ENTER("st_relay_log_info::st_relay_log_info");
|
||||
|
||||
@@ -1001,6 +1002,22 @@ bool st_relay_log_info::is_until_satisfied()
|
||||
log_pos= group_relay_log_pos;
|
||||
}
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
{
|
||||
char buf[32];
|
||||
DBUG_PRINT("info", ("group_master_log_name='%s', group_master_log_pos=%s",
|
||||
group_master_log_name, llstr(group_master_log_pos, buf)));
|
||||
DBUG_PRINT("info", ("group_relay_log_name='%s', group_relay_log_pos=%s",
|
||||
group_relay_log_name, llstr(group_relay_log_pos, buf)));
|
||||
DBUG_PRINT("info", ("(%s) log_name='%s', log_pos=%s",
|
||||
until_condition == UNTIL_MASTER_POS ? "master" : "relay",
|
||||
log_name, llstr(log_pos, buf)));
|
||||
DBUG_PRINT("info", ("(%s) until_log_name='%s', until_log_pos=%s",
|
||||
until_condition == UNTIL_MASTER_POS ? "master" : "relay",
|
||||
until_log_name, llstr(until_log_pos, buf)));
|
||||
}
|
||||
#endif
|
||||
|
||||
if (until_log_names_cmp_result == UNTIL_LOG_NAMES_CMP_UNKNOWN)
|
||||
{
|
||||
/*
|
||||
@@ -1056,30 +1073,19 @@ void st_relay_log_info::cached_charset_invalidate()
|
||||
}
|
||||
|
||||
|
||||
bool st_relay_log_info::cached_charset_compare(char *charset)
|
||||
bool st_relay_log_info::cached_charset_compare(char *charset) const
|
||||
{
|
||||
DBUG_ENTER("st_relay_log_info::cached_charset_compare");
|
||||
|
||||
if (bcmp(cached_charset, charset, sizeof(cached_charset)))
|
||||
{
|
||||
memcpy(cached_charset, charset, sizeof(cached_charset));
|
||||
memcpy(const_cast<char*>(cached_charset), charset, sizeof(cached_charset));
|
||||
DBUG_RETURN(1);
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
|
||||
|
||||
void st_relay_log_info::transaction_end(THD* thd)
|
||||
{
|
||||
DBUG_ENTER("st_relay_log_info::transaction_end");
|
||||
|
||||
/*
|
||||
Nothing to do here right now.
|
||||
*/
|
||||
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
#if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
|
||||
void st_relay_log_info::cleanup_context(THD *thd, bool error)
|
||||
{
|
||||
@@ -1106,7 +1112,7 @@ void st_relay_log_info::cleanup_context(THD *thd, bool error)
|
||||
m_table_map.clear_tables();
|
||||
close_thread_tables(thd);
|
||||
clear_tables_to_lock();
|
||||
unsafe_to_stop_at= 0;
|
||||
last_event_start_time= 0;
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user