Commit bfc5a0cc authored by unknown's avatar unknown

ndb - bug#24476

  Fix typo that yeilded rare crash in ACC


storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
  fix typo, where elementptr was sent as elementheader
  yeilded very rare crashes as only 1 bit is checked
    and it's only checked under certatin rare circumstances
parent c6911d6f
...@@ -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