Reduce the number of scope expansions during overlapped file detection.

This commit is contained in:
caelum 2025-05-11 12:56:19 +08:00
parent ac691084fd
commit fb624ef8a2

View File

@ -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();