summaryrefslogtreecommitdiff
path: root/sql/slave.h
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2003-03-17 22:51:56 +0100
committerunknown <guilhem@mysql.com>2003-03-17 22:51:56 +0100
commit40c0b2c6c8b730dec9900c3829b7babf0a5b4772 (patch)
tree5d9a0eaa1fe759e9fccf20738544fe2eab9bbbe8 /sql/slave.h
parent2103479670e60d1cce4166a4cd67b704bf4743da (diff)
downloadmariadb-git-40c0b2c6c8b730dec9900c3829b7babf0a5b4772.tar.gz
New variable rli->ignore_log_space_limit to resolve
a deadlock between I/O and SQL threads in replication when relay_log_space is too small. This fixes bug #79. sql/log.cc: New variable rli->ignore_log_space_limit to resolve a deadlock between I/O and SQL threads in replication when relay_log_space is too small. sql/slave.cc: New variable rli->ignore_log_space_limit to resolve a deadlock between I/O and SQL threads in replication when relay_log_space is too small. sql/slave.h: New variable rli->ignore_log_space_limit to resolve a deadlock between I/O and SQL threads in replication when relay_log_space is too small. sql/sql_repl.cc: New variable rli->ignore_log_space_limit to resolve a deadlock between I/O and SQL threads in replication when relay_log_space is too small.
Diffstat (limited to 'sql/slave.h')
-rw-r--r--sql/slave.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/slave.h b/sql/slave.h
index fe0f0b045f3..8832302056d 100644
--- a/sql/slave.h
+++ b/sql/slave.h
@@ -137,7 +137,14 @@ typedef struct st_relay_log_info
offset. pending stored the extra offset to be added to the position.
*/
ulonglong relay_log_pos, pending;
+
+ /*
+ Handling of the relay_log_space_limit optional constraint.
+ ignore_log_space_limit is used to resolve a deadlock between I/O and SQL
+ threads, it makes the I/O thread temporarily forget about the constraint
+ */
ulonglong log_space_limit,log_space_total;
+ bool ignore_log_space_limit;
/*
InnoDB internally stores the master log position it has processed