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.
Skip calling rocksdb::GetApproximateSize is start >= limit (facebook#131
) Summary: When kd::successor() is called in records_in_range, there is a possiblity of range.start >= range.limit. RocksDB has an assertion "v->cfd_->internal_comparator().Compare(start, end) <= 0'" so range should not be passed to rocksdb::GetApproximateSize in that case. This diff skips calling rocksdb::GetApproximateSize() and just returns 0. Differential Revision: https://reviews.facebook.net/D52491 fbshipit-source-id: 8b717bf
- Loading branch information
1 parent
d64f8b7
commit 0f77241
Showing
3 changed files
with
26 additions
and
0 deletions.
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
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
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