List:Commits« Previous MessageNext Message »
From:tomas Date:January 31 2006 9:22am
Subject:bk commit into 5.1 tree (tomas:1.2093)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 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
  1.2093 06/01/31 10:22:13 tomas@stripped +3 -0
  Merge tulin@stripped:/home/bk/mysql-5.1-new
  into  poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new

  sql/ha_ndbcluster_binlog.h
    1.4 06/01/31 10:22:05 tomas@stripped +0 -2
    Auto merged

  sql/ha_ndbcluster_binlog.cc
    1.7 06/01/31 10:22:05 tomas@stripped +0 -1
    Auto merged

  sql/ha_ndbcluster.cc
    1.247 06/01/31 10:22:05 tomas@stripped +0 -14
    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:	tomas
# Host:	poseidon.ndb.mysql.com
# Root:	/home/tomas/mysql-5.1-new/RESYNC

--- 1.246/sql/ha_ndbcluster.cc	2006-01-30 09:31:52 +01:00
+++ 1.247/sql/ha_ndbcluster.cc	2006-01-31 10:22:05 +01:00
@@ -5452,8 +5452,15 @@
       if (ndbtab->getFrmLength() == 0)
         continue;
     
-      strxnmov(key, FN_LEN-1, mysql_data_home, "/",
-               elmt.database, "/", elmt.name, NullS);
+      /* check if database exists */
+      char *end= strxnmov(key, FN_LEN-1, mysql_data_home, "/",
+                          elmt.database, NullS);
+      if (my_access(key, F_OK))
+      {
+        /* no such database defined, skip table */
+        continue;
+      }
+      strxnmov(end, FN_LEN-1-(key-end), "/", elmt.name, NullS);
       const void *data= 0, *pack_data= 0;
       uint length, pack_length;
       int discover= 0;
Thread
bk commit into 5.1 tree (tomas:1.2093)tomas31 Jan