[Bug-Fix] Fix partition cache match bug (#5060)

When partition cache is not cached continuely, range query may fail.
For example, partition key 20201011 and 20201013 is cached,
but rang query is between 20201011 and 20201013, the query will not hit the cache.
issue:#5059
This commit is contained in:
xinghuayu007
2020-12-19 11:17:44 +08:00
committed by GitHub
parent 5bf84814cc
commit 9ddf434f6b
2 changed files with 26 additions and 0 deletions

View File

@ -207,6 +207,7 @@ PCacheStatus ResultNode::fetch_partition(const PFetchCacheRequest* request,
end_it = part_it;
param_idx++;
part_it++;
find = false;
} else {
status = PCacheStatus::DATA_OVERDUE;
break;