[UT] Fix bug for cache unit test (#5766)

For #5726 . Last commit is not logic perfect, which will cause some unit tests not passed.
This commit is contained in:
xinghuayu007
2021-05-08 10:57:09 +08:00
committed by GitHub
parent 3fdfe0ba6f
commit 86d2ddc503

View File

@ -140,7 +140,7 @@ void ResultCache::fetch(const PFetchCacheRequest* request, PFetchCacheResult* re
break;
}
}
if (part_rowbatch_list.empty()) {
if (status == PCacheStatus::CACHE_OK && part_rowbatch_list.empty()) {
status = PCacheStatus::EMPTY_DATA;
}
result->set_status(status);