mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
7c187c2c9b
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.
18 lines
364 B
C
18 lines
364 B
C
#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 */
|