List:Commits« Previous MessageNext Message »
From:Stewart Smith Date:November 3 2006 1:56pm
Subject:bk commit into 5.0 tree (stewart:1.2277) BUG#22299
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of stewart. When stewart 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, 2006-11-03 23:56:25+11:00, stewart@willster.(none) +1 -0
  BUG#22299 mgmd crash due to unchecked TransporterFacade::ThreadData expand()
  
  abort if we ever fail to expand a Vector

  ndb/include/util/Vector.hpp@stripped, 2006-11-03 23:56:23+11:00, stewart@willster.(none) +2
-0
    abort on failure to allocate memory

# 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:	stewart
# Host:	willster.(none)
# Root:	/home/stewart/Documents/MySQL/5.0/ndb-mgm-work

--- 1.4/ndb/include/util/Vector.hpp	2005-04-01 00:12:09 +10:00
+++ 1.5/ndb/include/util/Vector.hpp	2006-11-03 23:56:23 +11:00
@@ -94,6 +94,8 @@
 Vector<T>::push_back(const T & t){
   if(m_size == m_arraySize){
     T * tmp = new T [m_arraySize + m_incSize];
+    if(!tmp)
+      abort();
     for (unsigned k = 0; k < m_size; k++)
       tmp[k] = m_items[k];
     delete[] m_items;
Thread
bk commit into 5.0 tree (stewart:1.2277) BUG#22299Stewart Smith3 Nov