mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Suma.cpp:
same as prev fix, wrong read of 64 bit value ndb/src/kernel/blocks/suma/Suma.cpp: same as prev fix, wrong read of 64 bit value
This commit is contained in:
parent
927eef9ea1
commit
5e6debe6b1
1 changed files with 4 additions and 3 deletions
|
|
@ -824,7 +824,8 @@ Suma::execUTIL_SEQUENCE_CONF(Signal* signal)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Uint32 subId = conf->sequenceValue[0];
|
Uint64 subId;
|
||||||
|
memcpy(&subId,conf->sequenceValue,8);
|
||||||
Uint32 subData = conf->senderData;
|
Uint32 subData = conf->senderData;
|
||||||
|
|
||||||
SubscriberPtr subbPtr;
|
SubscriberPtr subbPtr;
|
||||||
|
|
@ -832,8 +833,8 @@ Suma::execUTIL_SEQUENCE_CONF(Signal* signal)
|
||||||
|
|
||||||
|
|
||||||
CreateSubscriptionIdConf * subconf = (CreateSubscriptionIdConf*)conf;
|
CreateSubscriptionIdConf * subconf = (CreateSubscriptionIdConf*)conf;
|
||||||
subconf->subscriptionId = subId;
|
subconf->subscriptionId = (Uint32)subId;
|
||||||
subconf->subscriptionKey =(getOwnNodeId() << 16) | (subId & 0xFFFF);
|
subconf->subscriptionKey =(getOwnNodeId() << 16) | (Uint32)(subId & 0xFFFF);
|
||||||
subconf->subscriberData = subbPtr.p->m_senderData;
|
subconf->subscriberData = subbPtr.p->m_senderData;
|
||||||
|
|
||||||
sendSignal(subbPtr.p->m_subscriberRef, GSN_CREATE_SUBID_CONF, signal,
|
sendSignal(subbPtr.p->m_subscriberRef, GSN_CREATE_SUBID_CONF, signal,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue