forked from facebook/mysql-5.6
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assertion on covers_key(b) with debug build (facebook#728) (faceb…
…ook#730) (facebook#730) Summary: This diff removes an extra assertion on covers_key(b). Prefix condition might be incremented by successor(). It may overflow and points to outside of the index_id. This is an expected behavior and it should not fail. Closes facebook#730 Differential Revision: D6053481 (facebook@1d01321) Pulled By: yoshinorim fbshipit-source-id: fc6d3f38b58
- Loading branch information
1 parent
cf75716
commit 0deff57
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# Issue #728: Assertion `covers_key(b)' failed in int | ||
# myrocks::Rdb_key_def::cmp_full_keys(const rocks db::Slice&, | ||
# const rocksdb::Slice&) | ||
# | ||
CREATE TABLE t2(c1 TINYINT SIGNED KEY,c2 TINYINT UNSIGNED,c3 INT); | ||
INSERT INTO t2(c1)VALUES(0); | ||
SELECT * FROM t2 WHERE c1<=127 ORDER BY c1 DESC; | ||
c1 c2 c3 | ||
0 NULL NULL | ||
DROP TABLE t2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--source include/have_rocksdb.inc | ||
--source include/have_debug.inc | ||
|
||
--echo # | ||
--echo # Issue #728: Assertion `covers_key(b)' failed in int | ||
--echo # myrocks::Rdb_key_def::cmp_full_keys(const rocks db::Slice&, | ||
--echo # const rocksdb::Slice&) | ||
--echo # | ||
|
||
CREATE TABLE t2(c1 TINYINT SIGNED KEY,c2 TINYINT UNSIGNED,c3 INT); | ||
INSERT INTO t2(c1)VALUES(0); | ||
SELECT * FROM t2 WHERE c1<=127 ORDER BY c1 DESC; | ||
DROP TABLE t2; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters