ndb - bug#24476

  Fix typo that yeilded rare crash in ACC
parent e699ca73
...@@ -3337,9 +3337,10 @@ Dbacc::getElement(Signal* signal, OperationrecPtr& lockOwnerPtr) ...@@ -3337,9 +3337,10 @@ Dbacc::getElement(Signal* signal, OperationrecPtr& lockOwnerPtr)
bool found; bool found;
if (! searchLocalKey) if (! searchLocalKey)
{ {
Uint32 len = readTablePk(localkey1, tgeElementptr, lockOwnerPtr.p); Uint32 len = readTablePk(localkey1, tgeElementHeader,
lockOwnerPtr.p);
found = (len == operationRecPtr.p->xfrmtupkeylen) && found = (len == operationRecPtr.p->xfrmtupkeylen) &&
(memcmp(Tkeydata, ckeys, len << 2) == 0); (memcmp(Tkeydata, ckeys, len << 2) == 0);
} else { } else {
jam(); jam();
found = (localkey1 == Tkeydata[0]); found = (localkey1 == Tkeydata[0]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment