You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/06/11 09:58:53 UTC

[GitHub] beiwei30 commented on a change in pull request #1707: add an ExpiryCache for CacheFilter

beiwei30 commented on a change in pull request #1707: add an ExpiryCache  for CacheFilter
URL: https://github.com/apache/incubator-dubbo/pull/1707#discussion_r194349720
 
 

 ##########
 File path: dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/LRUCache.java
 ##########
 @@ -46,8 +46,8 @@ protected boolean removeEldestEntry(java.util.Map.Entry<K, V> eldest) {
 
     @Override
     public boolean containsKey(Object key) {
+        lock.lock();
 
 Review comment:
   why move lock.lock() outside?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org