diff options
author | Michael Widenius <monty@mariadb.org> | 2017-04-16 17:14:41 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2017-04-18 12:23:40 +0300 |
commit | d82ac8eaafd89a6a74436747b660ef02c69eaac3 (patch) | |
tree | b166cd3450d894407d4e269d1ea1c834d75c67dc /sql/log_event.h | |
parent | 00946f43310f528003251c7f3934966eff2a8089 (diff) | |
download | mariadb-git-d82ac8eaafd89a6a74436747b660ef02c69eaac3.tar.gz |
Change "static int" to enum in classes
This was done when static int where used as bit fields or enums
Diffstat (limited to 'sql/log_event.h')
-rw-r--r-- | sql/log_event.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sql/log_event.h b/sql/log_event.h index ccbc0527bd2..57692803b5b 100644 --- a/sql/log_event.h +++ b/sql/log_event.h @@ -3459,7 +3459,7 @@ public: The three elements in the body repeat COUNT times to form the GTID list. - At the time of writing, only one flag bit is in use. + At the time of writing, only two flag bit are in use. Bit 28 of `count' is used for flag FLAG_UNTIL_REACHED, which is sent in a Gtid_list event from the master to the slave to indicate that the START @@ -3477,9 +3477,12 @@ public: uint64 *sub_id_list; static const uint element_size= 4+4+8; - static const uint32 FLAG_UNTIL_REACHED= (1<<28); - static const uint32 FLAG_IGN_GTIDS= (1<<29); - + /* Upper bits stored in 'count'. See comment above */ + enum gtid_flags + { + FLAG_UNTIL_REACHED= (1<<28), + FLAG_IGN_GTIDS= (1<<29), + }; #ifdef MYSQL_SERVER Gtid_list_log_event(rpl_binlog_state *gtid_set, uint32 gl_flags); Gtid_list_log_event(slave_connection_state *gtid_set, uint32 gl_flags); |