summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorunknown <jonas@perch.ndb.mysql.com>2006-12-01 08:54:28 +0100
committerunknown <jonas@perch.ndb.mysql.com>2006-12-01 08:54:28 +0100
commitbfc5a0cc42eaf124e298401ebb1198f950b5a9dc (patch)
treec4a4b2950d29385a20f844bbfe3d16786298b0da /storage
parentc6911d6f7196f3f53b7d6821b72958c22f85fd6d (diff)
downloadmariadb-git-bfc5a0cc42eaf124e298401ebb1198f950b5a9dc.tar.gz
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
Diffstat (limited to 'storage')
-rw-r--r--storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp b/storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
index a23aeec8548..4b1e0ba7c55 100644
--- a/storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
+++ b/storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp
@@ -3337,9 +3337,10 @@ Dbacc::getElement(Signal* signal, OperationrecPtr& lockOwnerPtr)
bool found;
if (! searchLocalKey)
{
- Uint32 len = readTablePk(localkey1, tgeElementptr, lockOwnerPtr.p);
+ Uint32 len = readTablePk(localkey1, tgeElementHeader,
+ lockOwnerPtr.p);
found = (len == operationRecPtr.p->xfrmtupkeylen) &&
- (memcmp(Tkeydata, ckeys, len << 2) == 0);
+ (memcmp(Tkeydata, ckeys, len << 2) == 0);
} else {
jam();
found = (localkey1 == Tkeydata[0]);