summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-03-14 17:53:24 +0100
committerserg@serg.mylan <>2005-03-14 17:53:24 +0100
commit3613f8c262386559c8c174e7a6690570962a93ff (patch)
treecff7909bef99845786f6441b34905deb3bc19b72 /sql/log.cc
parentdba1e0889ac5f6a0c66c54b0013393dab934ece0 (diff)
downloadmariadb-git-3613f8c262386559c8c174e7a6690570962a93ff.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
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/log.cc b/sql/log.cc
index a73dd483711..43786990797 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -613,7 +613,12 @@ bool MYSQL_LOG::open(const char *log_name,
even if this is not the very first binlog.
*/
Format_description_log_event s(BINLOG_VERSION);
- s.flags|= LOG_EVENT_BINLOG_IN_USE_F;
+ /*
+ don't set LOG_EVENT_BINLOG_IN_USE_F for SEQ_READ_APPEND io_cache
+ as we won't be able to reset it later
+ */
+ if (io_cache_type == WRITE_CACHE)
+ s.flags|= LOG_EVENT_BINLOG_IN_USE_F;
if (!s.is_valid())
goto err;
if (null_created_arg)