mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fix for valgrind warning: Check for thd->binlog_evt_union.unioned_events only if
we were doing binlog union (i.e. need_binlog_call==TRUE)
This commit is contained in:
@@ -1055,7 +1055,7 @@ sp_head::execute_function(THD *thd, Item **argp, uint argcount, Item **resp)
|
|||||||
if (need_binlog_call)
|
if (need_binlog_call)
|
||||||
mysql_bin_log.stop_union_events(thd);
|
mysql_bin_log.stop_union_events(thd);
|
||||||
|
|
||||||
if (thd->binlog_evt_union.unioned_events && mysql_bin_log.is_open())
|
if (need_binlog_call && thd->binlog_evt_union.unioned_events)
|
||||||
{
|
{
|
||||||
char buf[256];
|
char buf[256];
|
||||||
String bufstr(buf, sizeof(buf), &my_charset_bin);
|
String bufstr(buf, sizeof(buf), &my_charset_bin);
|
||||||
|
Reference in New Issue
Block a user