MXS-2015: Always check for error responses

As a JSON object can never start with the ERR prefix, it is safe to check
it for all requests. Also fixed the missing newline in the avrorouter
error message.
This commit is contained in:
Markus Mäkelä
2018-08-15 12:44:25 +03:00
parent 0fbd789572
commit 1c733bf450
2 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ avro_client_process_command(AVRO_INSTANCE *router, AVRO_CLIENT *client, GWBUF *q
}
else
{
dcb_printf(client->dcb, "ERR REQUEST-DATA with no data");
dcb_printf(client->dcb, "ERR REQUEST-DATA with no data\n");
}
}
/* Return last GTID info */