Merge branch '2.2' into 2.2-mrm

This commit is contained in:
Johan Wikman
2017-09-27 13:08:24 +03:00
6 changed files with 70 additions and 18 deletions

View File

@ -381,6 +381,7 @@ bool externcmd_substitute_arg(EXTERNCMD* cmd, const char* match, const char* rep
if (dest)
{
mxs_pcre2_result_t rc = mxs_pcre2_substitute(re, cmd->argv[i], replace, &dest, &size);
switch (rc)
{
case MXS_PCRE2_ERROR:

View File

@ -1279,13 +1279,14 @@ static bool command_is_mandatory(const GWBUF *buffer)
{
switch (MYSQL_GET_COMMAND((uint8_t*)GWBUF_DATA(buffer)))
{
case MXS_COM_QUIT:
case MXS_COM_PING:
case MXS_COM_CHANGE_USER:
case MXS_COM_SET_OPTION:
case MXS_COM_FIELD_LIST:
case MXS_COM_PROCESS_KILL:
case MXS_COM_INIT_DB:
case MXS_COM_PING:
case MXS_COM_PROCESS_INFO:
case MXS_COM_PROCESS_KILL:
case MXS_COM_QUIT:
case MXS_COM_SET_OPTION:
return true;
default: