-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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 #730 Differential Revision: D6053481 Pulled By: yoshinorim
- Loading branch information
1 parent
352107c
commit fdef27b
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