From 2e90e77baac5283abe031addd51835285b127c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sat, 1 Sep 2018 11:21:24 +0300 Subject: [PATCH] MXS-2027: Set load to inactive on error The data loading should be set to inactive if an error is encountered, not to active. --- 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 4d518f9a0..2abb6a608 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.cc +++ b/server/modules/routing/readwritesplit/readwritesplit.cc @@ -1204,7 +1204,7 @@ static void clientReply(MXS_ROUTER *instance, { // Server responded with an error to the LOAD DATA LOCAL INFILE rses->load_data_state = LOAD_DATA_INACTIVE; - session_set_load_active(backend_dcb->session, true); + session_set_load_active(backend_dcb->session, false); } if (backend->get_reply_state() == REPLY_STATE_DONE)