List:Commits« Previous MessageNext Message »
From:Martin Skold Date:May 30 2006 1:20pm
Subject:bk commit into 4.1 tree (mskold:1.2487)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of marty. When marty 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.2487 06/05/30 13:20:38 mskold@stripped +1 -0
  Merge mskold@stripped:/home/bk/mysql-4.1
  into  mysql.com:/home/marty/MySQL/mysql-4.1

  sql/ha_ndbcluster.cc
    1.181 06/05/30 13:20:30 mskold@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:	mskold
# Host:	linux.site
# Root:	/home/marty/MySQL/mysql-4.1/RESYNC

--- 1.180/sql/ha_ndbcluster.cc	2006-05-05 17:18:37 +02:00
+++ 1.181/sql/ha_ndbcluster.cc	2006-05-30 13:20:30 +02:00
@@ -3308,8 +3308,23 @@
       {
         m_table= (void *)tab;
         m_table_version = tab->getObjectVersion();
-        if (!(my_errno= build_index_list(ndb, table, ILBP_OPEN)))
+        if ((my_errno= build_index_list(ndb, table, ILBP_OPEN)))
           DBUG_RETURN(my_errno);
+
+        const void *data, *pack_data;
+        uint length, pack_length;
+        if (readfrm(table->path, &data, &length) ||
+            packfrm(data, length, &pack_data, &pack_length) ||
+            pack_length != tab->getFrmLength() ||
+            memcmp(pack_data, tab->getFrmData(), pack_length))
+        {
+          my_free((char*)data, MYF(MY_ALLOW_ZERO_PTR));
+          my_free((char*)pack_data, MYF(MY_ALLOW_ZERO_PTR));
+          NdbError err= ndb->getNdbError(NDB_INVALID_SCHEMA_OBJECT);
+          DBUG_RETURN(ndb_to_mysql_error(&err));
+        }
+        my_free((char*)data, MYF(MY_ALLOW_ZERO_PTR));
+        my_free((char*)pack_data, MYF(MY_ALLOW_ZERO_PTR));
       }
       m_table_info= tab_info;
     }
Thread
bk commit into 4.1 tree (mskold:1.2487)Martin Skold30 May