mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#40482: server/mysqlbinlog crashes when reading invalid Incident_log_event
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.
This commit is contained in:
@ -6,10 +6,10 @@
|
||||
*/
|
||||
enum Incident {
|
||||
/** No incident */
|
||||
INCIDENT_NONE,
|
||||
INCIDENT_NONE = 0,
|
||||
|
||||
/** There are possibly lost events in the replication stream */
|
||||
INCIDENT_LOST_EVENTS,
|
||||
INCIDENT_LOST_EVENTS = 1,
|
||||
|
||||
/** Shall be last event of the enumeration */
|
||||
INCIDENT_COUNT
|
||||
|
Reference in New Issue
Block a user