List:Commits« Previous MessageNext Message »
From:tomas Date:March 21 2007 8:00am
Subject:bk commit into 5.0 tree (tomas:1.2488)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of tomas. When tomas 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-21 09:00:38+01:00, tomas@stripped +1 -0
  Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-telco-gca
  into  whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
  MERGE: 1.2377.38.12

  sql/ha_ndbcluster.cc@stripped, 2007-03-21 09:00:35+01:00, tomas@stripped +0 -0
    Auto merged
    MERGE: 1.291.4.2

# 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:	tomas
# Host:	whalegate.ndb.mysql.com
# Root:	/home/tomas/mysql-5.0-ndb/RESYNC

--- 1.300/sql/ha_ndbcluster.cc	2007-02-28 21:23:33 +01:00
+++ 1.301/sql/ha_ndbcluster.cc	2007-03-21 09:00:35 +01:00
@@ -952,7 +952,7 @@
   DBUG_PRINT("enter", ("m_tabname: %s, path: %s", m_tabname, path));
 
   do {
-    const void *data, *pack_data;
+    const void *data= NULL, *pack_data= NULL;
     uint length, pack_length;
 
     if (!(tab= dict->getTable(m_tabname)))
@@ -3751,7 +3751,7 @@
         if ((my_errno= build_index_list(ndb, table, ILBP_OPEN)))
           DBUG_RETURN(my_errno);
 
-        const void *data, *pack_data;
+        const void *data= NULL, *pack_data= NULL;
         uint length, pack_length;
         if (readfrm(table->s->path, &data, &length) ||
             packfrm(data, length, &pack_data, &pack_length) ||
@@ -4340,7 +4340,7 @@
   NDBTAB tab;
   NDBCOL col;
   uint pack_length, length, i, pk_length= 0;
-  const void *data, *pack_data;
+  const void *data= NULL, *pack_data= NULL;
   char name2[FN_HEADLEN];
   bool create_from_engine= (create_info->table_options & HA_OPTION_CREATE_FROM_ENGINE);
 
@@ -4375,8 +4375,11 @@
   if (readfrm(name, &data, &length))
     DBUG_RETURN(1);
   if (packfrm(data, length, &pack_data, &pack_length))
+  {
+    my_free((char*)data, MYF(0));
     DBUG_RETURN(2);
-  
+  }
+
   DBUG_PRINT("info", ("setFrm data: 0x%lx  len: %d", (long) pack_data, pack_length));
   tab.setFrm(pack_data, pack_length);      
   my_free((char*)data, MYF(0));
Thread
bk commit into 5.0 tree (tomas:1.2488)tomas21 Mar