MXS-2521:Route subseqenct COM_STMT_EXECUTE to the same server which first COM_STMT_EXECUTE was executed on

This commit is contained in:
wuzang.hdp
2019-06-20 16:10:19 +08:00
committed by Johan Wikman
parent d15582d26d
commit 8d50450b5a
5 changed files with 60 additions and 17 deletions

View File

@ -122,7 +122,7 @@ void process_sescmd_response(RWSplitSession* rses, SRWBackend& backend,
{
/** Map the returned response to the internal ID */
MXS_INFO("PS ID %u maps to internal ID %lu", resp.id, id);
rses->ps_handles[resp.id] = id;
rses->ps_handles[resp.id] = (id << 16) + resp.parameters;
}
// Discard any slave connections that did not return the same result