Daniel Naber wrote:

I see that Directory.renameFile() isn't used anymore. I assume it has only been public for technical reasons, not because we expect this to be used from outside of Lucene? Should we deprecate this method? Its implementation e.g. in FSDirectory looks a bit scary anyway (the comment correctly says "This is not atomic" while the abstract class says "This replacement should be atomic").

Oh, good catch!  I agree it should be deprecated.  In addition to
the non-atomic issue, that method is also problematic on Windows
(intermittent access denied errors, LUCENE-665).  Let's deprecate it
before 2.1?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to