Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6459e2c3
Commit
6459e2c3
authored
Feb 16, 2011
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the implicit unpack parameter explicit in the Bug #60049 test.
parent
cb884043
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/suite/innodb/t/innodb_bug60049.test
mysql-test/suite/innodb/t/innodb_bug60049.test
+2
-2
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
+2
-2
No files found.
mysql-test/suite/innodb/t/innodb_bug60049.test
View file @
6459e2c3
...
...
@@ -23,13 +23,13 @@ open(FILE, "<$file") || die "Unable to open $file";
# 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.
...
...
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
View file @
6459e2c3
...
...
@@ -23,13 +23,13 @@ open(FILE, "<$file") || die "Unable to open $file";
# 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment