1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

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().
This commit is contained in:
Teemu Ollakka
2019-02-14 15:30:54 +02:00
committed by Jan Lindström
parent b4c75f685b
commit 3be9982f6a

View File

@@ -1729,11 +1729,23 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
case COM_STMT_BULK_EXECUTE: case COM_STMT_BULK_EXECUTE:
{ {
mysqld_stmt_bulk_execute(thd, packet, packet_length); mysqld_stmt_bulk_execute(thd, packet, packet_length);
#ifdef WITH_WSREP
if (WSREP_ON)
{
(void)wsrep_after_statement(thd);
}
#endif /* WITH_WSREP */
break; break;
} }
case COM_STMT_EXECUTE: case COM_STMT_EXECUTE:
{ {
mysqld_stmt_execute(thd, packet, packet_length); mysqld_stmt_execute(thd, packet, packet_length);
#ifdef WITH_WSREP
if (WSREP_ON)
{
(void)wsrep_after_statement(thd);
}
#endif /* WITH_WSREP */
break; break;
} }
case COM_STMT_FETCH: case COM_STMT_FETCH: