You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2022/01/20 18:47:15 UTC

[GitHub] [lucenenet] eladmarg commented on a change in pull request #606: BUG: Lucene.Net.Search.FieldCacheImpl.Cache::Put(): Inverted cache logic

eladmarg commented on a change in pull request #606:
URL: https://github.com/apache/lucenenet/pull/606#discussion_r789057678



##########
File path: src/Lucene.Net/Search/FieldCacheImpl.cs
##########
@@ -312,7 +312,7 @@ public virtual void Put(AtomicReader reader, TKey key, TValue value)
                         wrapper.InitReader(reader);
                     }
 #endif
-                    if (innerCache.TryGetValue(key, out object temp) || temp is null)
+                    if (!innerCache.TryGetValue(key, out object temp) || temp is null)

Review comment:
       Great catch 👍 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org