summaryrefslogtreecommitdiff
path: root/sql/log_event.cc
diff options
context:
space:
mode:
authorJan Lindström <jan.lindstrom@mariadb.com>2018-07-24 14:54:50 +0300
committerJan Lindström <jan.lindstrom@mariadb.com>2018-07-24 14:54:50 +0300
commitc863159c320008676aff978a7cdde5732678f975 (patch)
treec27120ce7a1aa6ea6199a203f8a40f1c74fe8d1d /sql/log_event.cc
parentf99fe68b4fb7ca1715d059d283e50f050f692294 (diff)
downloadmariadb-git-c863159c320008676aff978a7cdde5732678f975.tar.gz
MDEV-16799: Test wsrep.variables crash at sql_class.cc:639 thd_get_ha_data
Problem was that binlog_hton was not initialized fully when needed i.e. when wsrep_on = true.
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r--sql/log_event.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc
index 52df9fc5f84..5697f5fa707 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -7753,11 +7753,6 @@ User_var_log_event(const char* buf, uint event_len,
we keep the flags set to UNDEF_F.
*/
uint bytes_read= ((val + val_len) - buf_start);
- if (bytes_read > event_len)
- {
- error= true;
- goto err;
- }
if ((data_written - bytes_read) > 0)
{
flags= (uint) *(buf + UV_VAL_IS_NULL + UV_VAL_TYPE_SIZE +