Move large query processing inside RWBackend

The knowledge of which function to call can be internal to RWBackend. This
make the use of the class easier as one can simply write to the backend.
This commit is contained in:
Markus Mäkelä
2019-04-18 13:14:45 +03:00
parent 3e41a601f8
commit 24fc82e160
3 changed files with 11 additions and 18 deletions

View File

@ -1176,9 +1176,7 @@ bool RWSplitSession::handle_got_target(GWBUF* querybuf, RWBackend* target, bool
* will do the replacement of PS IDs which must not be done if we are
* continuing an ongoing query.
*/
bool success = !m_qc.large_query() ?
target->write(send_buf, response) :
target->continue_write(send_buf);
bool success = target->write(send_buf, response);
if (success)
{