lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Halácsy Péter <halacsy.pe...@axelero.com>
Subject RE: IndexReader.lastModified() not correct
Date Wed, 07 Aug 2002 18:14:01 GMT


> -----Original Message-----
> From: Doug Cutting [mailto:cutting@lucene.com]
> Sent: Wednesday, August 07, 2002 8:09 PM
> To: Lucene Developers List
> Subject: Re: IndexReader.lastModified() not correct
> 
> 
> Looks correct to me, but it's a pain to have to do so much 
> work to check 
> this.
> 
> I wonder if we should instead add a Directory.lastModified() method. 
> Both the "segments" file and the .del files are installed with 
> Directory.renameFile().  On both Unix and Win32, file 
> renaming updates 
> the directory's last modified time, so FSDirectory could 
> implement this 
> with File.lastModified() on its directory, and it wouldn't be hard to 
> implement this for RAMDirectory.
> 
> Thoughts?
if this is true then my 
new File(pathToIndex).lastModified() should return good value. But it doesn't.


peter

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message