MXS-2027: Set load to inactive on error

The data loading should be set to inactive if an error is encountered, not
to active.
This commit is contained in:
Markus Mäkelä
2018-09-01 11:21:24 +03:00
parent 15eba3ac75
commit 2e90e77baa

View File

@ -1204,7 +1204,7 @@ static void clientReply(MXS_ROUTER *instance,
{ {
// Server responded with an error to the LOAD DATA LOCAL INFILE // Server responded with an error to the LOAD DATA LOCAL INFILE
rses->load_data_state = LOAD_DATA_INACTIVE; 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) if (backend->get_reply_state() == REPLY_STATE_DONE)