diff options
author | heikki@hundin.mysql.fi <> | 2005-04-20 19:27:46 +0300 |
---|---|---|
committer | heikki@hundin.mysql.fi <> | 2005-04-20 19:27:46 +0300 |
commit | 8974ce0836c79d6faa137f334de3b56abc6499af (patch) | |
tree | 258c1c9119e3231efe6bf7e961e33af6609b7f54 /sql/ha_innodb.h | |
parent | ba51f96e39716864a015e6bd7ec2ef82b1ed3574 (diff) | |
download | mariadb-git-8974ce0836c79d6faa137f334de3b56abc6499af.tar.gz |
Many files:
Semi-synchronous replication for InnoDB type tables; before telling the client that a commit has been processed, wait that the replication thread has returned from my_net_send() where it sends the binlog to the slave; note that TCP/IP, even with the TCP_NODELAY option does not guarantee that the slave has RECEIVED the data - this is just heuristic at the moment; this is useful in failover: in almost all cases, every transaction that has returned from the commit has been sent and processed in the slave, which makes failover to the slave simpler if the master crashes; the code does not work yet as is, because MySQL should call innobase_report_binlog_offset_and_commit() in a commit; we will most probably return that call to 5.0.x, to make InnoDB Hot Backup and group commit to work again; XA code broke them temporarily in 5.0.3
Diffstat (limited to 'sql/ha_innodb.h')
-rw-r--r-- | sql/ha_innodb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h index 35f95ead757..6c412a889b2 100644 --- a/sql/ha_innodb.h +++ b/sql/ha_innodb.h @@ -321,3 +321,5 @@ int innobase_rollback_by_xid( int innobase_xa_end(THD *thd); +int innobase_repl_report_sent_binlog(THD *thd, char *log_file_name, + my_off_t end_offset); |