You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2001/12/26 18:16:48 UTC
RE: cvs commit: jakarta-lucene/src/java/org/apache/lucene/index I ndexReader.java
Yes, I thought there would be more .lock files, I just didn't know what
their names are. Thanks for checking, I'll fix the code now.
Otis
--- Doug Cutting <DC...@grandcentral.com> wrote:
> Otis,
>
> Thanks for making these changes!
>
> One comment:
>
> > From: otis@apache.org [mailto:otis@apache.org]
> >
> > + public static boolean isLocked(Directory directory)
> > throws IOException {
> > + return directory.fileExists("write.lock");
> > + }
> > + public static void unlock(Directory directory) throws
> > IOException {
> > + directory.deleteFile("write.lock");
> > + }
> > }
>
> There is a chance that the "commit.lock" file could also remain after
> a
> crash, which would also prevent future modification of the index. So
> it
> would be best to either delete it by name, or to delete all files
> whose name
> ends in .lock.
>
> Cheers,
>
> Doug
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>