List:Commits« Previous MessageNext Message »
From:jani Date:December 14 2005 10:33am
Subject:bk commit into 5.1 tree (jani:1.1967)
View as plain text  
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 12:32:58 jani@stripped +1 -0
  Merge jamppa@stripped:/home/bk/mysql-5.1-new
  into  hundin.mysql.fi:/home/jani/mysql-5.1-new

  storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
    1.98 05/12/14 12:32:42 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:	hundin.mysql.fi
# Root:	/home/jani/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 12:32:42 +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;
Thread
bk commit into 5.1 tree (jani:1.1967)jani14 Dec