Commit 3be9982f authored by Teemu Ollakka's avatar Teemu Ollakka Committed by Jan Lindström

MDEV-18571 Fix wsrep PS protocol crash

Calls to wsrep_after_statement() were missing on PS protocol
codepath. Added calls after mysqld_stmt_execute() and
mysqld_stmt_bulk_execute().
parent b4c75f68
......@@ -1729,11 +1729,23 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
case COM_STMT_BULK_EXECUTE:
{
mysqld_stmt_bulk_execute(thd, packet, packet_length);
#ifdef WITH_WSREP
if (WSREP_ON)
{
(void)wsrep_after_statement(thd);
}
#endif /* WITH_WSREP */
break;
}
case COM_STMT_EXECUTE:
{
mysqld_stmt_execute(thd, packet, packet_length);
#ifdef WITH_WSREP
if (WSREP_ON)
{
(void)wsrep_after_statement(thd);
}
#endif /* WITH_WSREP */
break;
}
case COM_STMT_FETCH:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment