From db8ad7efa811abb9d1dcb8a973a31ebb6c71787d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sun, 13 Aug 2017 06:21:42 +0300 Subject: [PATCH] Fix MXS-1323 regression The check for session command count on failed session command was inverted so that only session command failures would be routed to the client. --- server/modules/routing/readwritesplit/readwritesplit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/readwritesplit.cc b/server/modules/routing/readwritesplit/readwritesplit.cc index 18d4c5fcb..58d3f0151 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.cc +++ b/server/modules/routing/readwritesplit/readwritesplit.cc @@ -415,7 +415,7 @@ static bool handle_error_new_connection(RWSplit *inst, gwbuf_free(stored); myrses->expected_responses--; - if (backend->session_command_count()) + if (backend->session_command_count() == 0) { /** * The backend was executing a command that requires a reply.