Skip to content

Commit a4ab5da

Browse files
MDEV-37774: ASAN crash in Gap_time_tracker's log_time()
THD class has an instance of Gap_time_tracker_data, which has a reference to "Gap_time_tracker" using "bill_to" field. During clean_up_after_query, reset bill_to field to NULL.
1 parent bce057f commit a4ab5da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/sql_class.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ void THD::cleanup_after_query()
23992399
if (!in_active_multi_stmt_transaction())
24002400
wsrep_affected_rows= 0;
24012401
#endif /* WITH_WSREP */
2402-
2402+
gap_tracker_data.init();
24032403
DBUG_VOID_RETURN;
24042404
}
24052405

0 commit comments

Comments
 (0)