Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas 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.2159 06/03/10 21:43:50 jonas@stripped +2 -0
ndb -
Remove test dependancy of table order in backup
mysql-test/t/ndb_restore.test
1.17 06/03/10 21:43:47 jonas@stripped +9 -2
Remove dependancy of table order in backup
mysql-test/r/ndb_restore.result
1.12 06/03/10 21:43:47 jonas@stripped +9 -2
Remove dependancy of table order in backup
# 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: jonas
# Host: perch.ndb.mysql.com
# Root: /home/jonas/src/mysql-5.1-new
--- 1.11/mysql-test/r/ndb_restore.result 2006-02-23 10:51:19 +01:00
+++ 1.12/mysql-test/r/ndb_restore.result 2006-03-10 21:43:47 +01:00
@@ -455,8 +455,15 @@
select * from t9_c) a;
count(*)
3
-drop table t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
+drop table t1_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
+CREATE TEMPORARY TABLE IF NOT EXISTS test.backup_info (id INT, backup_id INT) ENGINE = HEAP;
+DELETE FROM test.backup_info;
+LOAD DATA INFILE '../tmp.dat' INTO TABLE test.backup_info FIELDS TERMINATED BY ',';
+SELECT @the_backup_id:=backup_id FROM test.backup_info;
+@the_backup_id:=backup_id
+<the_backup_id>
+DROP TABLE test.backup_info;
Create table test/def/t2_c failed: Translate frm error
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
-drop table if exists t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
+drop table if exists t2_c;
520093696,<the_backup_id>
--- 1.16/mysql-test/t/ndb_restore.test 2006-02-22 22:03:21 +01:00
+++ 1.17/mysql-test/t/ndb_restore.test 2006-03-10 21:43:47 +01:00
@@ -347,7 +347,14 @@
from (select * from t9 union
select * from t9_c) a;
-drop table t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
+#
+# Drop all table except t2_c
+# This to make sure that error returned from ndb_restore above is
+# guaranteed to be from t2_c, this since order of tables in backup
+# is none deterministic
+#
+drop table t1_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
+--source include/ndb_backup.inc
--exec $NDB_TOOLS_DIR/ndb_restore --no-defaults --core=0 -b $the_backup_id -n 1 -m -r --ndb-nodegroup_map '(0,1)' $NDB_BACKUP_DIR/BACKUP/BACKUP-$the_backup_id 2>&1 | grep Translate || true
#
@@ -356,7 +363,7 @@
--disable_warnings
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
-drop table if exists t1_c,t2_c,t3_c,t4_c,t5_c,t6_c,t7_c,t8_c,t9_c;
+drop table if exists t2_c;
--enable_warnings
#
| Thread |
|---|
| • bk commit into 5.1 tree (jonas:1.2159) | jonas | 10 Mar |