lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENENET-75) FSDirectory does not correctly handle directory cache "DIRECTORIES"
Date Thu, 16 Aug 2007 13:11:31 GMT
FSDirectory does not correctly handle directory cache "DIRECTORIES"
-------------------------------------------------------------------

                 Key: LUCENENET-75
                 URL: https://issues.apache.org/jira/browse/LUCENENET-75
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Digy
            Priority: Critical
         Attachments: FSDirectory.patch

FSDirectory uses FileInfo class as a key to store and retrieve values from cache "DIRECTORIES".

Since  FileInfo instances are different(everytime a new instance is created in GetDirectory
method),  getting a previously stored value from the cache always returns null.

So instead of FileInfo class, directory's FullPath must be used as a key to access the cache.

FileInfo file = .....
DIRECTORIES[file] = .....;  ====> DIRECTORIES[file.FullName] = .......;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message