From: jani Date: December 14 2005 11:03am Subject: bk commit into 5.1 tree (jani:1.1967) List-Archive: http://lists.mysql.com/commits/146 Message-Id: <20051214110321.34A1441B42A@rhols221.adsl.netsonic.fi> Below is the list of changes that have just been committed into a local 5.1 repository of jani. When jani does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.1967 05/12/14 13:03:11 jani@stripped +1 -0 Merge jamppa@stripped:/home/bk/mysql-5.1-new into a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.1-new storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 1.98 05/12/14 13:03:02 jani@stripped +0 -0 Auto merged # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: jani # Host: a193-229-222-105.elisa-laajakaista.fi # Root: /home/my/bk/mysql-5.1-new/RESYNC --- 1.97/storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 2005-12-14 01:27:01 +02:00 +++ 1.98/storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp 2005-12-14 13:03:02 +02:00 @@ -2314,7 +2314,10 @@ { keyPartLenPtr = keyPartLen; dstPos = xfrm_key(tabPtrI, src, dst, sizeof(Tmp) >> 2, keyPartLenPtr); - ndbrequire(dstPos); + if (unlikely(dstPos == 0)) + { + goto error; + } } else { @@ -2335,6 +2338,10 @@ dstHash[1] = tmp[1]; } return true; // success + +error: + terrorCode = ZINVALID_KEY; + return false; } /* @@ -2944,7 +2951,15 @@ UintR tnoOfStandby; UintR tnodeinfo; + terrorCode = 0; + hash(signal); /* NOW IT IS TIME TO CALCULATE THE HASH VALUE*/ + + if (unlikely(terrorCode)) + { + releaseAtErrorLab(signal); + return; + } CacheRecord * const regCachePtr = cachePtr.p; TcConnectRecord * const regTcPtr = tcConnectptr.p;