mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Make the implicit unpack parameter explicit in the Bug #60049 test.
This commit is contained in:
@ -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).
|
# 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";
|
seek(FILE, 7*16384+38+36, 0) || die "Unable to seek $file";
|
||||||
die unless read(FILE, $_, 4) == 4;
|
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";
|
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.
|
# 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";
|
seek(FILE, $sys_tables_id_root*16384 + 152, 0) || die "Unable to seek $file";
|
||||||
read(FILE, $_, 32) || die "Unable to read $file";
|
read(FILE, $_, 32) || die "Unable to read $file";
|
||||||
close(FILE);
|
close(FILE);
|
||||||
print unpack("H*"),"\n";
|
print unpack("H*", $_), "\n";
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Restart the server.
|
# Restart the server.
|
||||||
|
@ -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).
|
# 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";
|
seek(FILE, 7*16384+38+36, 0) || die "Unable to seek $file";
|
||||||
die unless read(FILE, $_, 4) == 4;
|
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";
|
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.
|
# 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";
|
seek(FILE, $sys_tables_id_root*16384 + 152, 0) || die "Unable to seek $file";
|
||||||
read(FILE, $_, 32) || die "Unable to read $file";
|
read(FILE, $_, 32) || die "Unable to read $file";
|
||||||
close(FILE);
|
close(FILE);
|
||||||
print unpack("H*"),"\n";
|
print unpack("H*", $_), "\n";
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Restart the server.
|
# Restart the server.
|
||||||
|
Reference in New Issue
Block a user