summaryrefslogtreecommitdiff
path: root/sql/log_event.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-03-25 16:29:23 +0200
committerMonty <monty@mariadb.org>2020-03-25 16:30:53 +0200
commit80544a5878ac1ce456140914e53701b7611fc721 (patch)
treeeb6109b54e8ab1f4eae2104349ec41fc68a3af35 /sql/log_event.cc
parent12d59fabe268fe47fdc7952d69f97e5989afd305 (diff)
downloadmariadb-git-80544a5878ac1ce456140914e53701b7611fc721.tar.gz
Fixed rpl.rpl_mariadb_slave_capability.result file
The cause was an uninitalized variable on the slave when reading a dummy event that can only be generated by the test. Fixed by ensuring that flag2 is always initialized. Fixed also some indentation issues and improved comments.
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r--sql/log_event.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc
index d9537839f6c..1b273b19c33 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -1435,7 +1435,7 @@ Query_log_event::Query_log_event(const char* buf, uint event_len,
Log_event_type event_type)
:Log_event(buf, description_event), data_buf(0), query(NullS),
db(NullS), catalog_len(0), status_vars_len(0),
- flags2_inited(0), sql_mode_inited(0), charset_inited(0),
+ flags2_inited(0), sql_mode_inited(0), charset_inited(0), flags2(0),
auto_increment_increment(1), auto_increment_offset(1),
time_zone_len(0), lc_time_names_number(0), charset_database_number(0),
table_map_for_update(0), master_data_written(0)