Skip to content

Commit 111e9d4

Browse files
committed
Fix asan bug
Summary: see title Closes #364 Github Author: Santosh Praneeth Banda <santoshb@fb.com> Github PR Sync: {sync, type="child", parent="github", parentrepo="facebook/mysql-5.6", parentprnum="364", parentprfbid="1239951216066835"} Test Plan: mtr Reviewers: tianx, camerone, svcscm, santoshb Reviewed By: svcscm Subscribers: svcscm, mung, webscalesql-eng@ Differential Revision: https://phabricator.intern.facebook.com/D4097808 Signature: t1:4097808:1477687452:397ce74e45636b8de6533728b34f90634d7bdaff
1 parent 945bd28 commit 111e9d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sql/log_event.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14116,6 +14116,11 @@ Rows_query_log_event::Rows_query_log_event(const char *buf, uint event_len,
1411614116

1411714117
Rows_query_log_event::~Rows_query_log_event()
1411814118
{
14119+
#if defined(MYSQL_SERVER) && defined(HAVE_REPLICATION)
14120+
// reset the the query set during do_apply_event() before freeing up
14121+
// the m_rows_query.
14122+
thd->reset_query();
14123+
#endif
1411914124
my_free(m_rows_query);
1412014125
}
1412114126

0 commit comments

Comments
 (0)