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
e4dedf7e
Commit
e4dedf7e
authored
Dec 14, 2008
by
Timothy Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply InnoDB snapshot innodb-5.1-ss2858, part 16. Fix merge mistake which
resulted in a duplicate test case for bug 38231.
parent
03b790c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
94 deletions
+0
-94
mysql-test/r/innodb_bug38231.result
mysql-test/r/innodb_bug38231.result
+0
-11
mysql-test/t/innodb_bug38231.test
mysql-test/t/innodb_bug38231.test
+0
-83
No files found.
mysql-test/r/innodb_bug38231.result
View file @
e4dedf7e
...
...
@@ -9,14 +9,3 @@ a
TRUNCATE TABLE bug38231;
COMMIT;
DROP TABLE bug38231;
SET storage_engine=InnoDB;
INSERT INTO bug38231 VALUES (1), (10), (300);
SET autocommit=0;
SELECT * FROM bug38231 FOR UPDATE;
a
1
10
300
TRUNCATE TABLE bug38231;
COMMIT;
DROP TABLE bug38231;
mysql-test/t/innodb_bug38231.test
View file @
e4dedf7e
...
...
@@ -81,86 +81,3 @@ COMMIT;
--
disconnect
con4
DROP
TABLE
bug38231
;
#
# Bug#38231 Innodb crash in lock_reset_all_on_table() on TRUNCATE + LOCK / UNLOCK
# http://bugs.mysql.com/38231
#
--
source
include
/
have_innodb
.
inc
SET
storage_engine
=
InnoDB
;
# we care only that the following SQL commands do not crash the server
--
disable_query_log
--
disable_result_log
DROP
TABLE
IF
EXISTS
bug38231
;
CREATE
TABLE
bug38231
(
a
INT
);
--
connect
(
con1
,
localhost
,
root
,,)
--
connect
(
con2
,
localhost
,
root
,,)
--
connect
(
con3
,
localhost
,
root
,,)
--
connection
con1
SET
autocommit
=
0
;
LOCK
TABLE
bug38231
WRITE
;
--
connection
con2
SET
autocommit
=
0
;
--
send
LOCK
TABLE
bug38231
WRITE
;
--
connection
con3
SET
autocommit
=
0
;
--
send
LOCK
TABLE
bug38231
WRITE
;
--
connection
default
--
send
TRUNCATE
TABLE
bug38231
;
--
connection
con1
# give time to TRUNCATE and others to be executed; without sleep, sometimes
# UNLOCK executes before TRUNCATE
--
sleep
0.2
# this crashes the server if the bug is present
UNLOCK
TABLES
;
# clean up
--
connection
con2
UNLOCK
TABLES
;
--
connection
con3
UNLOCK
TABLES
;
--
connection
default
--
disconnect
con1
--
disconnect
con2
--
disconnect
con3
# test that TRUNCATE works with with row-level locks
--
enable_query_log
--
enable_result_log
INSERT
INTO
bug38231
VALUES
(
1
),
(
10
),
(
300
);
--
connect
(
con4
,
localhost
,
root
,,)
--
connection
con4
SET
autocommit
=
0
;
SELECT
*
FROM
bug38231
FOR
UPDATE
;
--
connection
default
TRUNCATE
TABLE
bug38231
;
--
connection
con4
COMMIT
;
--
connection
default
--
disconnect
con4
DROP
TABLE
bug38231
;
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