mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
05d7673340
Problem: When an Incident_log_event contains a bad incident number on disk, the server crashes with an assertion. Fix: Don't validate input with assertions. Use errors.
18 lines
372 B
C
18 lines
372 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 = 0,
|
|
|
|
/** There are possibly lost events in the replication stream */
|
|
INCIDENT_LOST_EVENTS = 1,
|
|
|
|
/** Shall be last event of the enumeration */
|
|
INCIDENT_COUNT
|
|
};
|
|
|
|
#endif /* RPL_CONSTANTS_H */
|