Merge branch 'v0.25-join' into v0.26-filter

This commit is contained in:
Kishore Nallan 2023-05-25 09:05:19 +05:30
commit 5a4b0645cd

View File

@ -362,6 +362,8 @@ bool get_search(const std::shared_ptr<http_req>& req, const std::shared_ptr<http
}
// Result found in cache but ttl has lapsed.
lock.unlock();
std::unique_lock ulock(mutex);
res_cache.erase(req_hash);
}
}
@ -456,6 +458,8 @@ bool post_multi_search(const std::shared_ptr<http_req>& req, const std::shared_p
}
// Result found in cache but ttl has lapsed.
lock.unlock();
std::unique_lock ulock(mutex);
res_cache.erase(req_hash);
}
}