diff options
author | mats@romeo.(none) <> | 2007-03-29 20:31:09 +0200 |
---|---|---|
committer | mats@romeo.(none) <> | 2007-03-29 20:31:09 +0200 |
commit | 7c187c2c9b0e5ba8796f5499d14ee13543a941ec (patch) | |
tree | 94a9332e96292bf9e0fa153652b4fe3ab60db14c /sql/rpl_injector.h | |
parent | b3ade670a681b312437dc29c2c51f1f6344ab3f4 (diff) | |
download | mariadb-git-7c187c2c9b0e5ba8796f5499d14ee13543a941ec.tar.gz |
WL#3464: Add replication event to denote gap in replication
Adding an event that can be used to denote that an incident occured
on the master. The event can be used to denote a gap in the replication
stream, but can also be used to denote other incidents.
In addition, the injector interface is extended with functions to
generate an incident event. The function will also rotate the binary
log after generating an incident event to get a fresh binary log.
Diffstat (limited to 'sql/rpl_injector.h')
-rw-r--r-- | sql/rpl_injector.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/rpl_injector.h b/sql/rpl_injector.h index 8b08c0672c9..a596538d3b9 100644 --- a/sql/rpl_injector.h +++ b/sql/rpl_injector.h @@ -18,9 +18,10 @@ /* Pull in 'byte', 'my_off_t', and 'uint32' */ #include <my_global.h> - #include <my_bitmap.h> +#include "rpl_constants.h" + /* Forward declarations */ class handler; class MYSQL_BIN_LOG; @@ -320,6 +321,9 @@ public: transaction new_trans(THD *); void new_trans(THD *, transaction *); + int record_incident(THD*, Incident incident); + int record_incident(THD*, Incident incident, LEX_STRING message); + private: explicit injector(); ~injector() { } /* Nothing needs to be done */ |