summaryrefslogtreecommitdiff
path: root/sql/rpl_constants.h
diff options
context:
space:
mode:
authormats@romeo.(none) <>2007-03-29 20:31:09 +0200
committermats@romeo.(none) <>2007-03-29 20:31:09 +0200
commit7c187c2c9b0e5ba8796f5499d14ee13543a941ec (patch)
tree94a9332e96292bf9e0fa153652b4fe3ab60db14c /sql/rpl_constants.h
parentb3ade670a681b312437dc29c2c51f1f6344ab3f4 (diff)
downloadmariadb-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_constants.h')
-rw-r--r--sql/rpl_constants.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/rpl_constants.h b/sql/rpl_constants.h
new file mode 100644
index 00000000000..426e80a328d
--- /dev/null
+++ b/sql/rpl_constants.h
@@ -0,0 +1,18 @@
+#ifndef RPL_CONSTANTS_H
+#define RPL_CONSTANTS_H
+
+/**
+ Enumeration of the incidents that can occur for the server.
+ */
+enum Incident {
+ /** No incident */
+ INCIDENT_NONE,
+
+ /** There are possibly lost events in the replication stream */
+ INCIDENT_LOST_EVENTS,
+
+ /** Shall be last event of the enumeration */
+ INCIDENT_COUNT
+};
+
+#endif /* RPL_CONSTANTS_H */