yiguolei commented on code in PR #24175:
URL: https://github.com/apache/doris/pull/24175#discussion_r1322256810
##########
be/src/runtime/user_function_cache.cpp:
##########
@@ -216,10 +216,12 @@ Status UserFunctionCache::_get_cache_entry(int64_t fid,
const std::string& url,
std::string file_name = _get_file_name_from_url(url);
{
std::lock_guard<std::mutex> l(_cache_lock);
- auto it = _entry_map.find(fid);
- if (it != _entry_map.end()) {
- entry = it->second;
- } else {
+ for (const auto& item : _entry_map) {
+ if (item.second->checksum == checksum) {
+ entry = item.second;
Review Comment:
add break here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]