summaryrefslogtreecommitdiff
path: root/sql/slave.h
diff options
context:
space:
mode:
authorguilhem@gbichot2 <>2003-11-23 17:02:59 +0100
committerguilhem@gbichot2 <>2003-11-23 17:02:59 +0100
commit05e5a35bf2db80d8c880618ad9424a8a52b31f13 (patch)
tree83cd5e156dfb886c15c3d3d13b272fe43f7e430b /sql/slave.h
parent9b4050c40668834ba4d933fe724af76c39c0fba8 (diff)
downloadmariadb-git-05e5a35bf2db80d8c880618ad9424a8a52b31f13.tar.gz
Replication:
Now the I/O thread (in flush_master_info()) flushes the relay log to disk after reading every event. Slower but provides additionnal safety in case of brutal crash. I had to make the flush optional (i.e. add a if(some_bool_argument) in the function) because sometimes flush_master_info() is called when there is no usable relay log (the relay log's IO_CACHE is not initialized so can't be flushed).
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 f8093826f58..e42b93a47ef 100644
--- a/sql/slave.h
+++ b/sql/slave.h
@@ -461,7 +461,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,