mirror of
https://github.com/google/leveldb.git
synced 2025-06-08 02:12: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;
|
||||
inputs->clear();
|
||||
i = 0;
|
||||
} else if (end != nullptr &&
|
||||
}
|
||||
if (end != nullptr &&
|
||||
user_cmp->Compare(file_limit, user_end) > 0) {
|
||||
user_end = file_limit;
|
||||
inputs->clear();
|
||||
|
Loading…
Reference in New Issue
Block a user