mirror of https://github.com/apache/lucene.git
add comment
This commit is contained in:
parent
d6bd6bbcbe
commit
8a9aa6f1dc
|
@ -405,6 +405,7 @@ public class LRUQueryCache implements QueryCache, Accountable {
|
||||||
lock.lock();
|
lock.lock();
|
||||||
try {
|
try {
|
||||||
cache.clear();
|
cache.clear();
|
||||||
|
// Note that this also clears the uniqueQueries map since mostRecentlyUsedQueries is the uniqueQueries.keySet view:
|
||||||
mostRecentlyUsedQueries.clear();
|
mostRecentlyUsedQueries.clear();
|
||||||
onClear();
|
onClear();
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue