lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschindler <...@git.apache.org>
Subject [GitHub] lucenenet pull request: Minor fixes in store
Date Wed, 04 Feb 2015 22:55:36 GMT
Github user uschindler commented on the pull request:

    https://github.com/apache/lucenenet/pull/70#issuecomment-72958293
  
    Hi,
    In Lucene Java the GetCanonicalPath is needed for the following: Java has the problem
that creating a native lock only affects *other* processes from using the directory. It does
not prevent the same process from writing to the same index directory. Because of that NativeFSLockFactory
keeps a static set of Path names to also ensure locking in the same JVM/process. To make sure
that this locking works we need the "canonical name" of the directory, otherwise it is not
guaranteed that locking really works.
    If this is not an issue on windows (if you lock a file, the file lock is visible to the
same process, too), then you won't need that.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message