mirror of
https://github.com/google/leveldb.git
synced 2025-06-07 18:02:42 +08:00
Reduce the number of scope expansions during overlapped file detection.
This commit is contained in:
parent
ac691084fd
commit
fb624ef8a2
@ -526,7 +526,8 @@ void Version::GetOverlappingInputs(int level, const InternalKey* begin,
|
|||||||
user_begin = file_start;
|
user_begin = file_start;
|
||||||
inputs->clear();
|
inputs->clear();
|
||||||
i = 0;
|
i = 0;
|
||||||
} else if (end != nullptr &&
|
}
|
||||||
|
if (end != nullptr &&
|
||||||
user_cmp->Compare(file_limit, user_end) > 0) {
|
user_cmp->Compare(file_limit, user_end) > 0) {
|
||||||
user_end = file_limit;
|
user_end = file_limit;
|
||||||
inputs->clear();
|
inputs->clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user