mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
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.
This commit is contained in:
committed by
Kristian Nielsen
parent
4d8b346e07
commit
0b87de124d
@ -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
|
||||
|
Reference in New Issue
Block a user