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
dfc75197
Commit
dfc75197
authored
Dec 22, 2011
by
Vasil Dimov
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1-security -> mysql-5.5-security
parents
d8c1d83d
86505c3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
mysql-test/suite/innodb/r/innodb_bug13510739.result
mysql-test/suite/innodb/r/innodb_bug13510739.result
+10
-0
mysql-test/suite/innodb/t/innodb_bug13510739.test
mysql-test/suite/innodb/t/innodb_bug13510739.test
+20
-0
storage/innobase/row/row0sel.c
storage/innobase/row/row0sel.c
+3
-1
No files found.
mysql-test/suite/innodb/r/innodb_bug13510739.result
0 → 100644
View file @
dfc75197
CREATE TABLE bug13510739 (c INTEGER NOT NULL, PRIMARY KEY (c)) ENGINE=INNODB;
INSERT INTO bug13510739 VALUES (1), (2), (3), (4);
DELETE FROM bug13510739 WHERE c=2;
HANDLER bug13510739 OPEN;
HANDLER bug13510739 READ `primary` = (2);
c
HANDLER bug13510739 READ `primary` NEXT;
c
4
DROP TABLE bug13510739;
mysql-test/suite/innodb/t/innodb_bug13510739.test
0 → 100644
View file @
dfc75197
#
# Bug#13510739 63775: SERVER CRASH ON HANDLER READ NEXT AFTER DELETE RECORD.
#
--
source
include
/
have_innodb
.
inc
CREATE
TABLE
bug13510739
(
c
INTEGER
NOT
NULL
,
PRIMARY
KEY
(
c
))
ENGINE
=
INNODB
;
INSERT
INTO
bug13510739
VALUES
(
1
),
(
2
),
(
3
),
(
4
);
DELETE
FROM
bug13510739
WHERE
c
=
2
;
HANDLER
bug13510739
OPEN
;
HANDLER
bug13510739
READ
`primary`
=
(
2
);
# this one crashes the server if the bug is present
HANDLER
bug13510739
READ
`primary`
NEXT
;
DROP
TABLE
bug13510739
;
storage/innobase/row/row0sel.c
View file @
dfc75197
...
@@ -4362,7 +4362,9 @@ no_gap_lock:
...
@@ -4362,7 +4362,9 @@ no_gap_lock:
applicable to unique secondary indexes. Current behaviour is
applicable to unique secondary indexes. Current behaviour is
to widen the scope of a lock on an already delete marked record
to widen the scope of a lock on an already delete marked record
if the same record is deleted twice by the same transaction */
if the same record is deleted twice by the same transaction */
if
(
index
==
clust_index
&&
unique_search
)
{
if
(
index
==
clust_index
&&
unique_search
&&
!
prebuilt
->
used_in_HANDLER
)
{
err
=
DB_RECORD_NOT_FOUND
;
err
=
DB_RECORD_NOT_FOUND
;
goto
normal_return
;
goto
normal_return
;
...
...
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