mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#20821 (INSERT DELAYED failes to write some rows to binlog):
Fixing typo and potential memory problem. Reducing number of concurrent mysqlslap threads since tests fail in pushbuild due to too many threads.
This commit is contained in:
@ -1638,8 +1638,12 @@ write_delayed(THD *thd,TABLE *table, enum_duplicates duplic,
|
||||
*/
|
||||
|
||||
if (query.str)
|
||||
if (!(query.str= my_strndup(query.str, MYF(MY_WME), query.length)))
|
||||
{
|
||||
char *str;
|
||||
if (!(str= my_strndup(query.str, query.length, MYF(MY_WME))))
|
||||
goto err;
|
||||
query.str= str;
|
||||
}
|
||||
row= new delayed_row(query, duplic, ignore, log_on);
|
||||
if (row == NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user