Commit b6975a83 authored by unknown's avatar unknown

Reducing risk for incorrect merges. Since we are multiple teams working on

different features, adding numbering to enums reduce the risk that code will
be merged incorrectly.  This particular enum must have fixed values to ensure
that an upgraded server always can read old logs.  I added this, since I 
noticed the incorrect order in the RBR clone.


sql/log_event.h:
  Added numbering of enum values
parent 19758ce6
...@@ -403,20 +403,21 @@ enum Log_event_type ...@@ -403,20 +403,21 @@ enum Log_event_type
Every time you update this enum (when you add a type), you have to Every time you update this enum (when you add a type), you have to
fix Format_description_log_event::Format_description_log_event(). fix Format_description_log_event::Format_description_log_event().
*/ */
UNKNOWN_EVENT= 0, START_EVENT_V3, QUERY_EVENT, STOP_EVENT, ROTATE_EVENT, UNKNOWN_EVENT= 0, START_EVENT_V3= 1, QUERY_EVENT= 2, STOP_EVENT= 3,
INTVAR_EVENT, LOAD_EVENT, SLAVE_EVENT, CREATE_FILE_EVENT, ROTATE_EVENT= 4, INTVAR_EVENT= 5, LOAD_EVENT= 6, SLAVE_EVENT= 7,
APPEND_BLOCK_EVENT, EXEC_LOAD_EVENT, DELETE_FILE_EVENT, CREATE_FILE_EVENT= 8, APPEND_BLOCK_EVENT= 9, EXEC_LOAD_EVENT= 10,
DELETE_FILE_EVENT= 11,
/* /*
NEW_LOAD_EVENT is like LOAD_EVENT except that it has a longer NEW_LOAD_EVENT is like LOAD_EVENT except that it has a longer
sql_ex, allowing multibyte TERMINATED BY etc; both types share the sql_ex, allowing multibyte TERMINATED BY etc; both types share the
same class (Load_log_event) same class (Load_log_event)
*/ */
NEW_LOAD_EVENT, NEW_LOAD_EVENT= 12,
RAND_EVENT, USER_VAR_EVENT, RAND_EVENT, USER_VAR_EVENT= 13,
FORMAT_DESCRIPTION_EVENT, FORMAT_DESCRIPTION_EVENT= 14,
XID_EVENT, XID_EVENT= 15,
BEGIN_LOAD_QUERY_EVENT, BEGIN_LOAD_QUERY_EVENT= 16,
EXECUTE_LOAD_QUERY_EVENT, EXECUTE_LOAD_QUERY_EVENT= 17,
/* /*
add new events here - right above this comment! add new events here - right above this comment!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment