diff options
author | Sven Sandberg <sven@mysql.com> | 2008-12-29 17:04:10 +0100 |
---|---|---|
committer | Sven Sandberg <sven@mysql.com> | 2008-12-29 17:04:10 +0100 |
commit | 05d7673340a8c9fcf3ced59384adee63a4adf280 (patch) | |
tree | 140102f9249f7ff4d6beb0772df2511a8ec0abc8 /sql/rpl_constants.h | |
parent | c9245922d6dc5a7dedca24c160c0ae791d55aa69 (diff) | |
download | mariadb-git-05d7673340a8c9fcf3ced59384adee63a4adf280.tar.gz |
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.
Diffstat (limited to 'sql/rpl_constants.h')
-rw-r--r-- | sql/rpl_constants.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/rpl_constants.h b/sql/rpl_constants.h index 426e80a328d..32fb4b8a7f2 100644 --- a/sql/rpl_constants.h +++ b/sql/rpl_constants.h @@ -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 |