diff options
author | unknown <serg@serg.mylan> | 2005-03-14 17:53:24 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-03-14 17:53:24 +0100 |
commit | 72ae2a5884ac7a1364751c573bda60c6ebd37683 (patch) | |
tree | cff7909bef99845786f6441b34905deb3bc19b72 /sql/sql_repl.cc | |
parent | ebbee9d974a37ce9fad0a2b67152cbc412a58067 (diff) | |
download | mariadb-git-72ae2a5884ac7a1364751c573bda60c6ebd37683.tar.gz |
sql/log.cc
don't set LOG_EVENT_BINLOG_IN_USE_F for relay logs
sql/sql_repl.cc
clear LOG_EVENT_BINLOG_IN_USE_F flag before sending an event to a slave
sql/log.cc:
don't set LOG_EVENT_BINLOG_IN_USE_F for relay logs
sql/sql_repl.cc:
clear LOG_EVENT_BINLOG_IN_USE_F flag before sending an event to a slave
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index fb583448535..0284ab542df 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -456,6 +456,7 @@ impossible position"; { binlog_can_be_corrupted= test((*packet)[FLAGS_OFFSET+1] & LOG_EVENT_BINLOG_IN_USE_F); + (*packet)[FLAGS_OFFSET+1] &= ~LOG_EVENT_BINLOG_IN_USE_F; /* mark that this event with "log_pos=0", so the slave should not increment master's binlog position @@ -512,8 +513,11 @@ impossible position"; #endif if ((*packet)[EVENT_TYPE_OFFSET+1] == FORMAT_DESCRIPTION_EVENT) + { binlog_can_be_corrupted= test((*packet)[FLAGS_OFFSET+1] & LOG_EVENT_BINLOG_IN_USE_F); + (*packet)[FLAGS_OFFSET+1] &= ~LOG_EVENT_BINLOG_IN_USE_F; + } else if ((*packet)[EVENT_TYPE_OFFSET+1] == STOP_EVENT) binlog_can_be_corrupted= FALSE; |