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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1a0b9247
Commit
1a0b9247
authored
Feb 15, 2011
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for suspected Bug#60049.
parent
cf86257e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
94 additions
and
0 deletions
+94
-0
mysql-test/suite/innodb/r/innodb_bug60049.result
mysql-test/suite/innodb/r/innodb_bug60049.result
+8
-0
mysql-test/suite/innodb/t/innodb_bug60049-master.opt
mysql-test/suite/innodb/t/innodb_bug60049-master.opt
+1
-0
mysql-test/suite/innodb/t/innodb_bug60049.test
mysql-test/suite/innodb/t/innodb_bug60049.test
+38
-0
mysql-test/suite/innodb_plugin/r/innodb_bug60049.result
mysql-test/suite/innodb_plugin/r/innodb_bug60049.result
+8
-0
mysql-test/suite/innodb_plugin/t/innodb_bug60049-master.opt
mysql-test/suite/innodb_plugin/t/innodb_bug60049-master.opt
+1
-0
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
+38
-0
No files found.
mysql-test/suite/innodb/r/innodb_bug60049.result
0 → 100644
View file @
1a0b9247
CREATE TABLE t(a INT)ENGINE=InnoDB;
RENAME TABLE t TO u;
DROP TABLE u;
SELECT @@innodb_fast_shutdown;
@@innodb_fast_shutdown
0
Last record of ID_IND root page (9):
1808000018050074000000000000000c5359535f464f524549474e5f434f4c53
mysql-test/suite/innodb/t/innodb_bug60049-master.opt
0 → 100644
View file @
1a0b9247
--innodb_fast_shutdown=0
mysql-test/suite/innodb/t/innodb_bug60049.test
0 → 100644
View file @
1a0b9247
# Bug #60049 Verify that purge leaves no garbage in unique secondary indexes
# This test requires a fresh server start-up and a slow shutdown.
# This was a suspected bug (not a bug).
--
source
include
/
have_innodb
.
inc
CREATE
TABLE
t
(
a
INT
)
ENGINE
=
InnoDB
;
RENAME
TABLE
t
TO
u
;
DROP
TABLE
u
;
SELECT
@@
innodb_fast_shutdown
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
# Shut down the server
--
exec
echo
"wait"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
shutdown_server
10
--
source
include
/
wait_until_disconnected
.
inc
# Check the tail of ID_IND (SYS_TABLES.ID)
let
IBDATA1
=
$MYSQLD_DATADIR
/
ibdata1
;
perl
;
my
$file
=
$ENV
{
'IBDATA1'
};
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"
;
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
"
;
EOF
# Restart the server.
--
exec
echo
"restart"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
enable_reconnect
--
source
include
/
wait_until_connected_again
.
inc
mysql-test/suite/innodb_plugin/r/innodb_bug60049.result
0 → 100644
View file @
1a0b9247
CREATE TABLE t(a INT)ENGINE=InnoDB;
RENAME TABLE t TO u;
DROP TABLE u;
SELECT @@innodb_fast_shutdown;
@@innodb_fast_shutdown
0
Last record of ID_IND root page (9):
1808000018050074000000000000000c5359535f464f524549474e5f434f4c53
mysql-test/suite/innodb_plugin/t/innodb_bug60049-master.opt
0 → 100644
View file @
1a0b9247
--innodb_fast_shutdown=0
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test
0 → 100644
View file @
1a0b9247
# Bug #60049 Verify that purge leaves no garbage in unique secondary indexes
# This test requires a fresh server start-up and a slow shutdown.
# This was a suspected bug (not a bug).
--
source
include
/
have_innodb_plugin
.
inc
CREATE
TABLE
t
(
a
INT
)
ENGINE
=
InnoDB
;
RENAME
TABLE
t
TO
u
;
DROP
TABLE
u
;
SELECT
@@
innodb_fast_shutdown
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
# Shut down the server
--
exec
echo
"wait"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
shutdown_server
10
--
source
include
/
wait_until_disconnected
.
inc
# Check the tail of ID_IND (SYS_TABLES.ID)
let
IBDATA1
=
$MYSQLD_DATADIR
/
ibdata1
;
perl
;
my
$file
=
$ENV
{
'IBDATA1'
};
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"
;
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
"
;
EOF
# Restart the server.
--
exec
echo
"restart"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
enable_reconnect
--
source
include
/
wait_until_connected_again
.
inc
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