List:Commits« Previous MessageNext Message »
From:gni Date:March 8 2007 10:47am
Subject:bk commit into 5.1 tree (gni:1.2441) BUG#25743
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of root. When root 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@stripped, 2007-03-08 17:47:13+08:00, gni@stripped +1 -0
  BUG#25743 If undo_buffer_size (for LG) greater than the inital shared memory (default 20M), 
            ndbd nodes are crashed

  storage/ndb/src/kernel/vm/Pool.hpp@stripped, 2007-03-08 17:47:11+08:00, gni@stripped +5 -2
    Only when m_pool.seize() return true, the ptr.i and ptr.p is assigned the right value, 
    or else the parameter ptr should be "not touched".

# 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:	gni
# Host:	dev3-221.dev.cn.tlan
# Root:	/home/ngb/mysql/mysql-5.1/mysql-5.1-bug25743

--- 1.11/storage/ndb/src/kernel/vm/Pool.hpp	2007-03-08 17:47:20 +08:00
+++ 1.12/storage/ndb/src/kernel/vm/Pool.hpp	2007-03-08 17:47:20 +08:00
@@ -307,8 +307,11 @@
 {
   Ptr<void> tmp;
   bool ret = m_pool.seize(tmp);
-  ptr.i = tmp.i;
-  ptr.p = static_cast<T*>(tmp.p);
+  if(likely(ret))
+  {
+    ptr.i = tmp.i;
+    ptr.p = static_cast<T*>(tmp.p);
+  }
   return ret;
 }
 
Thread
bk commit into 5.1 tree (gni:1.2441) BUG#25743gni8 Mar