diff options
author | Jonas Oreland <jonaso@google.com> | 2014-12-23 13:38:00 +0100 |
---|---|---|
committer | Kristian Nielsen <knielsen@knielsen-hq.org> | 2014-12-23 14:16:32 +0100 |
commit | 0b87de124d716cee7c1aa56f30c7f80c2c2bfcce (patch) | |
tree | 5557407d03402bdf28daf1b64e438362358f6188 /sql/rpl_handler.h | |
parent | 4d8b346e079a27960dbe49e4d0ec4364bed8d30e (diff) | |
download | mariadb-git-0b87de124d716cee7c1aa56f30c7f80c2c2bfcce.tar.gz |
MDEV-162 Enhanced semisync replication
Implement --semi-sync-master-wait-point=AFTER_SYNC|AFTER_COMMIT.
When AFTER_SYNC, the semi-sync wait will be done earlier, before the storage
engine commit rather than after. This means that a transaction will not be
visible on the master until at least one slave has received it.
Diffstat (limited to 'sql/rpl_handler.h')
-rw-r--r-- | sql/rpl_handler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/rpl_handler.h b/sql/rpl_handler.h index e262ebdbd6b..afcfd9d55b1 100644 --- a/sql/rpl_handler.h +++ b/sql/rpl_handler.h @@ -153,7 +153,10 @@ class Binlog_storage_delegate public: typedef Binlog_storage_observer Observer; int after_flush(THD *thd, const char *log_file, - my_off_t log_pos, bool synced); + my_off_t log_pos, bool synced, + bool first_in_group, bool last_in_group); + int after_sync(THD *thd, const char *log_file, my_off_t log_pos, + bool first_in_group, bool last_in_group); }; #ifdef HAVE_REPLICATION |