summaryrefslogtreecommitdiff
path: root/sql/slave.h
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2004-03-10 16:56:28 +0100
committerunknown <guilhem@mysql.com>2004-03-10 16:56:28 +0100
commitc6d91e00bbd103e46d806b1b9aad1963f4cfe18c (patch)
tree46e90eed3c4eb4203616844eb60c039281f944ec /sql/slave.h
parent843d6df523a255e9ecb864d0ed26761e353f4639 (diff)
downloadmariadb-git-c6d91e00bbd103e46d806b1b9aad1963f4cfe18c.tar.gz
Backporting parts of
ChangeSet 1.1620.12.1 and ChangeSet 1.1625.2.1 from 4.1. This makes the slave I/O thread flush the relay log after every event, which provides additional safety in case of brutal crash (reduces chances to lose a part of the relay log). sql/repl_failsafe.cc: update for new prototype sql/slave.cc: The slave I/O thread now flushes the relay log after writing every event to it, like we already do in 4.1. sql/slave.h: new prototype sql/sql_repl.cc: update for new prototype
Diffstat (limited to 'sql/slave.h')
-rw-r--r--sql/slave.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/slave.h b/sql/slave.h
index 8331e722a51..9877582d094 100644
--- a/sql/slave.h
+++ b/sql/slave.h
@@ -361,7 +361,7 @@ typedef struct st_table_rule_ent
int init_slave();
void init_slave_skip_errors(const char* arg);
-bool flush_master_info(MASTER_INFO* mi);
+bool flush_master_info(MASTER_INFO* mi, bool flush_relay_log_cache);
bool flush_relay_log_info(RELAY_LOG_INFO* rli);
int register_slave_on_master(MYSQL* mysql);
int terminate_slave_threads(MASTER_INFO* mi, int thread_mask,