summaryrefslogtreecommitdiff
path: root/sql/log_event.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-12-29 13:23:18 +0100
committerSergei Golubchik <serg@mariadb.org>2016-12-29 13:23:18 +0100
commit4a5d25c338a5d1d2cc16343380193d6bf25ae6ae (patch)
tree73b84a9c8f3d5e3e3383fa79465b11f9ded512d3 /sql/log_event.h
parent48dc7cc66ef5b69fcf28ec0b2ecf0338c188cf4e (diff)
parentc13b5011629b5ff7b969d648265002e4d1ba94c2 (diff)
downloadmariadb-git-4a5d25c338a5d1d2cc16343380193d6bf25ae6ae.tar.gz
Merge branch '10.1' into 10.2
Diffstat (limited to 'sql/log_event.h')
-rw-r--r--sql/log_event.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/log_event.h b/sql/log_event.h
index bbefbe26f41..7b8704636af 100644
--- a/sql/log_event.h
+++ b/sql/log_event.h
@@ -1213,7 +1213,7 @@ public:
return thd ? thd->db : 0;
}
#else
- Log_event() : temp_buf(0), flags(0) {}
+ Log_event() : temp_buf(0), when(0), flags(0) {}
ha_checksum crc;
/* print*() functions are used by mysqlbinlog */
virtual void print(FILE* file, PRINT_EVENT_INFO* print_event_info) = 0;
@@ -3768,6 +3768,7 @@ private:
class Unknown_log_event: public Log_event
{
public:
+ enum { UNKNOWN, ENCRYPTED } what;
/*
Even if this is an unknown event, we still pass description_event to
Log_event's ctor, this way we can extract maximum information from the
@@ -3775,8 +3776,10 @@ public:
*/
Unknown_log_event(const char* buf,
const Format_description_log_event *description_event):
- Log_event(buf, description_event)
+ Log_event(buf, description_event), what(UNKNOWN)
{}
+ /* constructor for hopelessly corrupted events */
+ Unknown_log_event(): Log_event(), what(ENCRYPTED) {}
~Unknown_log_event() {}
void print(FILE* file, PRINT_EVENT_INFO* print_event_info);
Log_event_type get_type_code() { return UNKNOWN_EVENT;}