lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: DbDirectory and compound files
Date Fri, 01 Oct 2004 16:22:35 GMT
Andi Vajda wrote:
> This point about buffering brings up another point. Currently, there is 
> no public way to tell the open IndexWriter to flush its Directory. This 
> makes it difficult to use several transactions during the lifetime of 
> the IndexWriter.

The only thing in the Directory API which is required to be atomic and 
that's used to implement commit, is renameFile().  This is called when 
all IndexOutputs have been closed.  Immediately after the rename is 
completed is the appropriate place to commit a transaction.  Perhaps 
this should be more explicit in the API...

Doug

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


Mime
View raw message