Skip to content

Commit

Permalink
Merge pull request #51085 from eugeneius/prune_thread_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneius committed Feb 14, 2024
2 parents 6260b6b + bc31f5e commit 3163bb7
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -135,6 +135,7 @@ def query_cache_enabled

private
def prune_thread_cache
super
dead_threads = @thread_query_caches.keys.reject(&:alive?)
dead_threads.each do |dead_thread|
@thread_query_caches.delete(dead_thread)
Expand Down

0 comments on commit 3163bb7

Please sign in to comment.