shift 32
This commit is contained in:
@ -122,7 +122,7 @@ void process_sescmd_response(RWSplitSession* rses, SRWBackend& backend,
|
|||||||
{
|
{
|
||||||
/** Map the returned response to the internal ID */
|
/** Map the returned response to the internal ID */
|
||||||
MXS_INFO("PS ID %u maps to internal ID %lu", resp.id, id);
|
MXS_INFO("PS ID %u maps to internal ID %lu", resp.id, id);
|
||||||
rses->ps_handles[resp.id] = (id << 16) + resp.parameters;
|
rses->ps_handles[resp.id] = (id << 32) + resp.parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Discard any slave connections that did not return the same result
|
// Discard any slave connections that did not return the same result
|
||||||
|
|||||||
@ -120,8 +120,8 @@ uint32_t get_internal_ps_id(RWSplitSession* rses, GWBUF* buffer, uint16_t* n_par
|
|||||||
|
|
||||||
if (it != rses->ps_handles.end())
|
if (it != rses->ps_handles.end())
|
||||||
{
|
{
|
||||||
rval = it->second >> 16;
|
rval = it->second >> 32;
|
||||||
*n_params = it->second & 0xffff;
|
*n_params = it->second & 0xffffffff;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user