3710 Marko Mäkelä 2011-02-16
Make the implicit unpack parameter explicit in the Bug #60049 test.
modified:
mysql-test/suite/innodb/t/innodb_bug60049.test
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
3709 Marko Mäkelä 2011-02-15
Add a test for suspected Bug#60049.
added:
mysql-test/suite/innodb/r/innodb_bug60049.result
mysql-test/suite/innodb/t/innodb_bug60049-master.opt
mysql-test/suite/innodb/t/innodb_bug60049.test
mysql-test/suite/innodb_plugin/r/innodb_bug60049.result
mysql-test/suite/innodb_plugin/t/innodb_bug60049-master.opt
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
=== modified file 'mysql-test/suite/innodb/t/innodb_bug60049.test'
--- a/mysql-test/suite/innodb/t/innodb_bug60049.test revid:marko.makela@strippedn
+++ b/mysql-test/suite/innodb/t/innodb_bug60049.test revid:marko.makela@stripped77
@@ -23,13 +23,13 @@ open(FILE, "<$file") || die "Unable to o
# Read DICT_HDR_TABLE_IDS, the root page number of ID_IND (SYS_TABLES.ID).
seek(FILE, 7*16384+38+36, 0) || die "Unable to seek $file";
die unless read(FILE, $_, 4) == 4;
-my $sys_tables_id_root = unpack "N";
+my $sys_tables_id_root = unpack("N", $_);
print "Last record of ID_IND root page ($sys_tables_id_root):\n";
# This should be the last record in ID_IND. Dump it in hexadecimal.
seek(FILE, $sys_tables_id_root*16384 + 152, 0) || die "Unable to seek $file";
read(FILE, $_, 32) || die "Unable to read $file";
close(FILE);
-print unpack("H*"),"\n";
+print unpack("H*", $_), "\n";
EOF
# Restart the server.
=== modified file 'mysql-test/suite/innodb_plugin/t/innodb_bug60049.test'
--- a/mysql-test/suite/innodb_plugin/t/innodb_bug60049.test revid:marko.makela@stripped215101227-tjx4pdn9038c5ixn
+++ b/mysql-test/suite/innodb_plugin/t/innodb_bug60049.test revid:marko.makela@strippedom-20110216133416-oieu7dmcy9jlon77
@@ -23,13 +23,13 @@ open(FILE, "<$file") || die "Unable to o
# Read DICT_HDR_TABLE_IDS, the root page number of ID_IND (SYS_TABLES.ID).
seek(FILE, 7*16384+38+36, 0) || die "Unable to seek $file";
die unless read(FILE, $_, 4) == 4;
-my $sys_tables_id_root = unpack "N";
+my $sys_tables_id_root = unpack("N", $_);
print "Last record of ID_IND root page ($sys_tables_id_root):\n";
# This should be the last record in ID_IND. Dump it in hexadecimal.
seek(FILE, $sys_tables_id_root*16384 + 152, 0) || die "Unable to seek $file";
read(FILE, $_, 32) || die "Unable to read $file";
close(FILE);
-print unpack("H*"),"\n";
+print unpack("H*", $_), "\n";
EOF
# Restart the server.
Attachment: [text/bzr-bundle] bzr/marko.makela@oracle.com-20110216133416-oieu7dmcy9jlon77.bundle
| Thread |
|---|
| • bzr push into mysql-5.1-innodb branch (marko.makela:3709 to 3710) Bug#60049 | marko.makela | 16 Feb |