shift 32
This commit is contained in:
parent
6b31b80e76
commit
51ce3c53fd
@ -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 << 16) + resp.parameters;
|
||||
rses->ps_handles[resp.id] = (id << 32) + resp.parameters;
|
||||
}
|
||||
|
||||
// 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())
|
||||
{
|
||||
rval = it->second >> 16;
|
||||
*n_params = it->second & 0xffff;
|
||||
rval = it->second >> 32;
|
||||
*n_params = it->second & 0xffffffff;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user