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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user