mirror of
https://github.com/typesense/typesense.git
synced 2025-05-26 00:36:22 +08:00
Merge branch 'v0.25-join' into v0.26-filter
This commit is contained in:
commit
5a4b0645cd
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user